PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::PointSet< TDataType > Class Template Reference

A PointSet stores the coordinates for a set of independent points. More...

#include <PointSet.h>

Inheritance diagram for dyno::PointSet< TDataType >:
Collaboration diagram for dyno::PointSet< TDataType >:

Public Types

typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
- Public Types inherited from dyno::TopologyModule
typedef PointType Point
 
typedef VectorND< PointType, 2 > Edge
 
typedef Vector< PointType, 3 > Triangle
 
typedef VectorND< PointType, 4 > Quad
 
typedef VectorND< PointType, 4 > Tetrahedron
 
typedef VectorND< PointType, 5 > Pyramid
 
typedef VectorND< PointType, 6 > Pentahedron
 
typedef VectorND< PointType, 8 > Hexahedron
 
typedef VectorND< PointType, 2 > Edg2Tri
 
typedef VectorND< PointType, 3 > Tri2Edg
 
typedef VectorND< PointType, 2 > Edg2Quad
 
typedef VectorND< PointType, 4 > Quad2Edg
 
typedef VectorND< PointType, 2 > Tri2Tet
 
typedef VectorND< PointType, 4 > Tet2Tri
 
typedef VectorND< PointType, 2 > Tri2Quad
 
typedef VectorND< PointType, 2 > Quad2Hex
 
typedef VectorND< PointType, 2 > Edg2Hex
 
typedef VectorND< PointType, 2 > Edg2Poly
 
- Public Types inherited from dyno::OBase
typedef std::vector< FBase * > FieldVector
 
typedef std::map< FieldID, FBase * > FieldMap
 

Public Member Functions

 PointSet ()
 
 ~PointSet () override
 
void copyFrom (PointSet< TDataType > &pointSet)
 
void setPoints (const std::vector< Coord > &pos)
 
void setPoints (const DArray< Coord > &pos)
 
void setSize (int size)
 
int getPointSize ()
 
void requestBoundingBox (Coord &lo, Coord &hi)
 Return the lower and upper bounds for all points.
 
void scale (const Real s)
 
void scale (const Coord s)
 
void translate (const Coord t)
 
virtual void rotate (const Coord angle)
 
virtual void rotate (const Quat< Real > q)
 
void loadObjFile (std::string filename)
 
virtual bool isEmpty ()
 
virtual void clear ()
 
DArray< Coord > & getPoints ()
 Return the array of points.
 
 PointSet ()
 
 ~PointSet () override
 
DArray< Vec3f > & getPoints ()
 
void setPoints (std::vector< Vec3f > &points)
 
void setPoints (const DArray< Vec3f > &points)
 
void clear ()
 
- Public Member Functions inherited from dyno::TopologyModule
 TopologyModule ()
 
 ~TopologyModule () override
 
virtual int getDOF ()
 
void tagAsChanged ()
 
void tagAsUnchanged ()
 
bool isTopologyChanged ()
 
void update ()
 
- Public Member Functions inherited from dyno::OBase
 OBase ()
 
 ~OBase () override
 
virtual std::string caption ()
 Return the caption.
 
virtual bool captionVisible ()
 Whether to hide the caption in the GUI.
 
virtual std::string description ()
 Return a description for the node or module, override this function to support user-defined description.
 
virtual std::string getName ()
 
bool addField (FBase *data)
 Add a field to Base FieldID will be set to the name of Field by default.
 
bool addField (FieldID name, FBase *data)
 Add a field to Base.
 
bool addFieldAlias (FieldID name, FBase *data)
 
bool addFieldAlias (FieldID name, FBase *data, FieldMap &fieldAlias)
 
bool findField (FBase *data)
 Find a field by its pointer.
 
bool findFieldAlias (const FieldID name)
 Find a field by its name.
 
bool findFieldAlias (const FieldID name, FieldMap &fieldAlias)
 Find a field in fieldAlias by its name This function is typically called by other functions.
 
bool removeField (FBase *data)
 Remove a field by its pointer.
 
bool removeFieldAlias (const FieldID name)
 Remove a field by its name.
 
bool removeFieldAlias (const FieldID name, FieldMap &fieldAlias)
 
FBasegetField (const FieldID name)
 Return a field by its name.
 
std::vector< FBase * > & getAllFields ()
 
virtual bool attachField (FBase *field, std::string name, std::string desc, bool autoDestroy=true)
 Attach a field to Base.
 
template<typename T>
TgetField (FieldID name)
 
bool isAllFieldsReady ()
 Check the completeness of all required fields.
 
std::vector< FieldIDgetFieldAlias (FBase *data)
 
int getFieldAliasCount (FBase *data)
 
void setBlockCoord (float x, float y)
 
float bx ()
 
float by ()
 
bool findInputField (FBase *field)
 
bool addInputField (FBase *field)
 
bool removeInputField (FBase *field)
 
std::vector< FBase * > & getInputFields ()
 
bool findOutputField (FBase *field)
 
bool addOutputField (FBase *field)
 
bool addToOutput (FBase *field)
 
bool removeOutputField (FBase *field)
 
bool removeFromOutput (FBase *field)
 
std::vector< FBase * > & getOutputFields ()
 
bool findParameter (FBase *field)
 
bool addParameter (FBase *field)
 
bool removeParameter (FBase *field)
 
std::vector< FBase * > & getParameters ()
 
- Public Member Functions inherited from dyno::Object
 Object ()
 
virtual ~Object ()
 
ObjectId objectId ()
 

Public Attributes

DArray< Vec3fmPoints
 

Protected Attributes

DArray< CoordmCoords
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::Object
static bool registerClass (ClassInfo *ci)
 
static ObjectcreateObject (std::string name)
 
static std::map< std::string, ClassInfo * > * getClassMap ()
 
static ObjectId baseId ()
 Base Id.
 
- Protected Member Functions inherited from dyno::TopologyModule
virtual void updateTopology ()
 

Detailed Description

template<typename TDataType>
class dyno::PointSet< TDataType >

A PointSet stores the coordinates for a set of independent points.

Template Parameters
TDataTyperepresents the template argument, which can either be set as DataType3f or DataType3d

Definition at line 7 of file PointSet.h.

Member Typedef Documentation

◆ Coord

template<typename TDataType>
typedef TDataType::Coord dyno::PointSet< TDataType >::Coord

Definition at line 34 of file PointSet.h.

◆ Real

template<typename TDataType>
typedef TDataType::Real dyno::PointSet< TDataType >::Real

Definition at line 33 of file PointSet.h.

Constructor & Destructor Documentation

◆ PointSet() [1/2]

template<typename TDataType>
dyno::PointSet< TDataType >::PointSet ( )

Definition at line 5 of file PointSet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~PointSet() [1/2]

template<typename TDataType>
dyno::PointSet< TDataType >::~PointSet ( )
override

Definition at line 10 of file PointSet.cpp.

◆ PointSet() [2/2]

template<typename TDataType>
dyno::PointSet< TDataType >::PointSet ( )

◆ ~PointSet() [2/2]

template<typename TDataType>
dyno::PointSet< TDataType >::~PointSet ( )
override

Member Function Documentation

◆ clear() [1/2]

template<typename TDataType>
void dyno::PointSet< TDataType >::clear ( )
virtual

◆ clear() [2/2]

template<typename TDataType>
void dyno::PointSet< TDataType >::clear ( )

◆ copyFrom()

template<typename TDataType>
void dyno::PointSet< TDataType >::copyFrom ( PointSet< TDataType > & pointSet)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPoints() [1/2]

template<typename TDataType>
DArray< Coord > & dyno::PointSet< TDataType >::getPoints ( )
inline

Return the array of points.

Definition at line 70 of file PointSet.h.

Here is the caller graph for this function:

◆ getPoints() [2/2]

template<typename TDataType>
DArray< Vec3f > & dyno::PointSet< TDataType >::getPoints ( )
inline

Definition at line 13 of file PointSet.h.

◆ getPointSize()

template<typename TDataType>
int dyno::PointSet< TDataType >::getPointSize ( )
inline

Definition at line 46 of file PointSet.h.

◆ isEmpty()

◆ loadObjFile()

template<typename TDataType>
void dyno::PointSet< TDataType >::loadObjFile ( std::string filename)

◆ requestBoundingBox()

template<typename TDataType>
void dyno::PointSet< TDataType >::requestBoundingBox ( Coord & lo,
Coord & hi )

Return the lower and upper bounds for all points.

◆ rotate() [1/2]

template<typename TDataType>
virtual void dyno::PointSet< TDataType >::rotate ( const Coord angle)
virtual

Reimplemented in dyno::TriangleSet< TDataType >.

◆ rotate() [2/2]

template<typename TDataType>
virtual void dyno::PointSet< TDataType >::rotate ( const Quat< Real > q)
virtual

Reimplemented in dyno::TriangleSet< TDataType >.

◆ scale() [1/2]

template<typename TDataType>
void dyno::PointSet< TDataType >::scale ( const Coord s)

◆ scale() [2/2]

template<typename TDataType>
void dyno::PointSet< TDataType >::scale ( const Real s)
Here is the caller graph for this function:

◆ setPoints() [1/4]

template<typename TDataType>
void dyno::PointSet< TDataType >::setPoints ( const DArray< Coord > & pos)

◆ setPoints() [2/4]

template<typename TDataType>
void dyno::PointSet< TDataType >::setPoints ( const DArray< Vec3f > & points)

Definition at line 19 of file PointSet.cpp.

◆ setPoints() [3/4]

template<typename TDataType>
void dyno::PointSet< TDataType >::setPoints ( const std::vector< Coord > & pos)
Here is the caller graph for this function:

◆ setPoints() [4/4]

template<typename TDataType>
void dyno::PointSet< TDataType >::setPoints ( std::vector< Vec3f > & points)

Definition at line 14 of file PointSet.cpp.

◆ setSize()

template<typename TDataType>
void dyno::PointSet< TDataType >::setSize ( int size)

◆ translate()

template<typename TDataType>
void dyno::PointSet< TDataType >::translate ( const Coord t)
Here is the caller graph for this function:

Member Data Documentation

◆ mCoords

template<typename TDataType>
DArray<Coord> dyno::PointSet< TDataType >::mCoords
protected

Definition at line 73 of file PointSet.h.

◆ mPoints

template<typename TDataType>
DArray<Vec3f> dyno::PointSet< TDataType >::mPoints

Definition at line 21 of file PointSet.h.


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