27 #include "WManipulatorNormalize.h"
28 #include "core/dataHandler/WDataSetSingle.h"
55 regGrid = std::dynamic_pointer_cast< WGridRegular3D >( dsSingle->getGrid() );
62 bbox = regGrid->getBoundingBox();
65 for(
size_t id = 0;
id < 3; ++id )
70 m(
id,
id ) = 1.0 / ( distance );
const vec_type & getMax() const
Gives the back upper right aka maximum corner.
const vec_type & getMin() const
Gives the front lower left aka minimum corner.
std::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a std::shared_ptr.
std::shared_ptr< WGridRegular3DTemplate > SPtr
Convenience typedef for a std::shared_ptr< WGridRegular3DTemplate >.
An interface for dataset transformation manipulators.
WPropPosition m_normalize
The normalize parameters as a vector.
virtual void reset()
Reset the transform.
WManipulatorNormalize(std::shared_ptr< WDataSet > *dataSet)
Constructor.
virtual ~WManipulatorNormalize()
Destructor.
virtual bool transformationChanged() const
Check if the transform has changed, for example because of a change to properties.
virtual WMatrixFixed< double, 4, 4 > getTransformationMatrix() const
Get the transformation matrix from this manipulator.
std::shared_ptr< WDataSet > * m_dataSet
Pointer to the dataset to be normalized.
static MatrixType identity()
Returns an identity matrix.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WProperties::SPtr m_properties
the properties of the object.
This only is a 3d double vector.