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

#include <SimplexSet.h>

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

Public Member Functions

 SimplexSet ()
 
 ~SimplexSet () override
 
void copyFrom (SimplexSet< TDataType > &simplex)
 
bool isEmpty () override
 
void setEdgeIndex (const DArray< Edge > &segments)
 
void setEdgeIndex (const CArray< Edge > &segments)
 
void setTriangleIndex (const DArray< Triangle > &triangles)
 
void setTriangleIndex (const CArray< Triangle > &triangles)
 
void setTetrahedronIndex (const DArray< Tetrahedron > &tetrahedrons)
 
void setTetrahedronIndex (const CArray< Tetrahedron > &tetrahedrons)
 
void extractSimplex1D (EdgeSet< TDataType > &es)
 return the 1-dimensional simplex to EdgeSet
 
void extractSimplex2D (TriangleSet< TDataType > &ts)
 return the 2-dimensional simplex to TriangleSet
 
void extractSimplex3D (TetrahedronSet< TDataType > &ts)
 return the 3-dimensional simplex to TetrahedronSet
 
void extractPointSet (PointSet< TDataType > &ps)
 
void extractEdgeSet (EdgeSet< TDataType > &es)
 extract and merge edges from 1, 2, 3-dimensional simplexes into one EdgeSet
 
void extractTriangleSet (TriangleSet< TDataType > &ts)
 extract and merge triangles from 2, 3-dimensional simplexes into one TriangleSet
 
- Public Member Functions inherited from dyno::PointSet< TDataType >
 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 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 ()
 

Protected Member Functions

void updateTopology () override
 

Private Types

typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
typedef TopologyModule::Edge Edge
 
typedef TopologyModule::Triangle Triangle
 
typedef TopologyModule::Tetrahedron Tetrahedron
 

Private Attributes

DArray< EdgemEdgeIndex
 
DArray< TrianglemTriangleIndex
 
DArray< TetrahedronmTetrahedronIndex
 

Additional Inherited Members

- Public Types inherited from dyno::PointSet< TDataType >
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
 
- 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.
 
- Public Attributes inherited from dyno::PointSet< TDataType >
DArray< Vec3fmPoints
 
- Protected Attributes inherited from dyno::PointSet< TDataType >
DArray< CoordmCoords
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

Detailed Description

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

Definition at line 25 of file SimplexSet.h.

Member Typedef Documentation

◆ Coord

template<typename TDataType>
typedef TDataType::Coord dyno::SimplexSet< TDataType >::Coord
private

Definition at line 28 of file SimplexSet.h.

◆ Edge

template<typename TDataType>
typedef TopologyModule::Edge dyno::SimplexSet< TDataType >::Edge
private

Definition at line 30 of file SimplexSet.h.

◆ Real

template<typename TDataType>
typedef TDataType::Real dyno::SimplexSet< TDataType >::Real
private

Definition at line 27 of file SimplexSet.h.

◆ Tetrahedron

template<typename TDataType>
typedef TopologyModule::Tetrahedron dyno::SimplexSet< TDataType >::Tetrahedron
private

Definition at line 32 of file SimplexSet.h.

◆ Triangle

template<typename TDataType>
typedef TopologyModule::Triangle dyno::SimplexSet< TDataType >::Triangle
private

Definition at line 31 of file SimplexSet.h.

Constructor & Destructor Documentation

◆ SimplexSet()

template<typename TDataType>
dyno::SimplexSet< TDataType >::SimplexSet ( )
Here is the caller graph for this function:

◆ ~SimplexSet()

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

Member Function Documentation

◆ copyFrom()

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

◆ extractEdgeSet()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractEdgeSet ( EdgeSet< TDataType > & es)

extract and merge edges from 1, 2, 3-dimensional simplexes into one EdgeSet

◆ extractPointSet()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractPointSet ( PointSet< TDataType > & ps)
Here is the call graph for this function:

◆ extractSimplex1D()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractSimplex1D ( EdgeSet< TDataType > & es)

return the 1-dimensional simplex to EdgeSet

◆ extractSimplex2D()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractSimplex2D ( TriangleSet< TDataType > & ts)

return the 2-dimensional simplex to TriangleSet

◆ extractSimplex3D()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractSimplex3D ( TetrahedronSet< TDataType > & ts)

return the 3-dimensional simplex to TetrahedronSet

◆ extractTriangleSet()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::extractTriangleSet ( TriangleSet< TDataType > & ts)

extract and merge triangles from 2, 3-dimensional simplexes into one TriangleSet

◆ isEmpty()

template<typename TDataType>
bool dyno::SimplexSet< TDataType >::isEmpty ( )
overridevirtual

Reimplemented from dyno::PointSet< TDataType >.

◆ setEdgeIndex() [1/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setEdgeIndex ( const CArray< Edge > & segments)
inline

Definition at line 43 of file SimplexSet.h.

◆ setEdgeIndex() [2/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setEdgeIndex ( const DArray< Edge > & segments)
inline

Definition at line 42 of file SimplexSet.h.

◆ setTetrahedronIndex() [1/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setTetrahedronIndex ( const CArray< Tetrahedron > & tetrahedrons)
inline

Definition at line 49 of file SimplexSet.h.

◆ setTetrahedronIndex() [2/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setTetrahedronIndex ( const DArray< Tetrahedron > & tetrahedrons)
inline

Definition at line 48 of file SimplexSet.h.

◆ setTriangleIndex() [1/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setTriangleIndex ( const CArray< Triangle > & triangles)
inline

Definition at line 46 of file SimplexSet.h.

◆ setTriangleIndex() [2/2]

template<typename TDataType>
void dyno::SimplexSet< TDataType >::setTriangleIndex ( const DArray< Triangle > & triangles)
inline

Definition at line 45 of file SimplexSet.h.

◆ updateTopology()

template<typename TDataType>
void dyno::SimplexSet< TDataType >::updateTopology ( )
overrideprotectedvirtual

Reimplemented from dyno::TopologyModule.

Member Data Documentation

◆ mEdgeIndex

template<typename TDataType>
DArray<Edge> dyno::SimplexSet< TDataType >::mEdgeIndex
private

Definition at line 82 of file SimplexSet.h.

◆ mTetrahedronIndex

template<typename TDataType>
DArray<Tetrahedron> dyno::SimplexSet< TDataType >::mTetrahedronIndex
private

Definition at line 84 of file SimplexSet.h.

◆ mTriangleIndex

template<typename TDataType>
DArray<Triangle> dyno::SimplexSet< TDataType >::mTriangleIndex
private

Definition at line 83 of file SimplexSet.h.


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