OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WManipulatorNormalize Class Reference

A manipulator to scale datasets to form a unit cube. More...

#include <WManipulatorNormalize.h>

+ Inheritance diagram for WManipulatorNormalize:
+ Collaboration diagram for WManipulatorNormalize:

Public Member Functions

 WManipulatorNormalize (std::shared_ptr< WDataSet > *dataSet)
 Constructor. More...
 
virtual ~WManipulatorNormalize ()
 Destructor. More...
 
virtual WMatrixFixed< double, 4, 4 > getTransformationMatrix () const
 Get the transformation matrix from this manipulator. More...
 
virtual bool transformationChanged () const
 Check if the transform has changed, for example because of a change to properties. More...
 
virtual void reset ()
 Reset the transform. More...
 
- Public Member Functions inherited from WObjectNDIP< WManipulatorInterface >
virtual ~WObjectNDIP ()
 Destructor. More...
 
virtual std::string getName () const
 The name of the object. More...
 
virtual std::string getDescription () const
 The description of this object. More...
 
virtual const char ** getIcon () const
 The icon of this object. More...
 
virtual WProperties::SPtr getProperties ()
 Return the property group of this object. More...
 
- Public Member Functions inherited from WManipulatorInterface
virtual ~WManipulatorInterface ()
 Destructor. More...
 

Private Attributes

WPropPosition m_normalize
 The normalize parameters as a vector. More...
 
std::shared_ptr< WDataSet > * m_dataSet
 Pointer to the dataset to be normalized. More...
 

Additional Inherited Members

- Public Types inherited from WObjectNDIP< WManipulatorInterface >
typedef std::shared_ptr< WObjectNDIPSPtr
 Shared ptr to an instance. More...
 
typedef std::shared_ptr< const WObjectNDIPConstSPtr
 Shared ptr to a const instance. More...
 
- Protected Member Functions inherited from WObjectNDIP< WManipulatorInterface >
 WObjectNDIP (std::string name, std::string description, const char **icon=NULL)
 Construct a NDIP'ed object. More...
 
- Protected Attributes inherited from WObjectNDIP< WManipulatorInterface >
WProperties::SPtr m_properties
 the properties of the object. More...
 

Detailed Description

A manipulator to scale datasets to form a unit cube.

Definition at line 38 of file WManipulatorNormalize.h.

Constructor & Destructor Documentation

◆ WManipulatorNormalize()

WManipulatorNormalize::WManipulatorNormalize ( std::shared_ptr< WDataSet > *  dataSet)
explicit

Constructor.

Parameters
dataSetThe data set to be transformed

Definition at line 30 of file WManipulatorNormalize.cpp.

References m_normalize, and WObjectNDIP< WManipulatorInterface >::m_properties.

◆ ~WManipulatorNormalize()

WManipulatorNormalize::~WManipulatorNormalize ( )
virtual

Destructor.

Definition at line 37 of file WManipulatorNormalize.cpp.

Member Function Documentation

◆ getTransformationMatrix()

WMatrixFixed< double, 4, 4 > WManipulatorNormalize::getTransformationMatrix ( ) const
virtual

Get the transformation matrix from this manipulator.

Returns
The current transform.

Implements WManipulatorInterface.

Definition at line 41 of file WManipulatorNormalize.cpp.

References WBoundingBoxImpl< VT >::getMax(), WBoundingBoxImpl< VT >::getMin(), WMatrixFixed< ValueT, Rows, Cols, ValueStoreT >::identity(), m_dataSet, and m_normalize.

+ Here is the call graph for this function:

◆ reset()

void WManipulatorNormalize::reset ( )
virtual

Reset the transform.

Implements WManipulatorInterface.

Definition at line 83 of file WManipulatorNormalize.cpp.

References m_normalize.

◆ transformationChanged()

bool WManipulatorNormalize::transformationChanged ( ) const
virtual

Check if the transform has changed, for example because of a change to properties.

Returns
true, iff the transformation has changed.

Implements WManipulatorInterface.

Definition at line 78 of file WManipulatorNormalize.cpp.

References m_normalize.

Member Data Documentation

◆ m_dataSet

std::shared_ptr< WDataSet >* WManipulatorNormalize::m_dataSet
private

Pointer to the dataset to be normalized.

Definition at line 76 of file WManipulatorNormalize.h.

Referenced by getTransformationMatrix().

◆ m_normalize

WPropPosition WManipulatorNormalize::m_normalize
private

The normalize parameters as a vector.

Definition at line 73 of file WManipulatorNormalize.h.

Referenced by getTransformationMatrix(), reset(), transformationChanged(), and WManipulatorNormalize().


The documentation for this class was generated from the following files: