PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::TextureMesh Class Reference

#include <TextureMesh.h>

Inheritance diagram for dyno::TextureMesh:
Collaboration diagram for dyno::TextureMesh:

Public Member Functions

 TextureMesh ()
 
 ~TextureMesh () override
 
DArray< Vec3f > & vertices ()
 
DArray< Vec3f > & normals ()
 
DArray< Vec2f > & texCoords ()
 
DArray< uint > & shapeIds ()
 
std::vector< std::shared_ptr< Shape > > & shapes ()
 
std::vector< std::shared_ptr< Material > > & materials ()
 
void merge (const std::shared_ptr< TextureMesh > &texMesh01, const std::shared_ptr< TextureMesh > &texMesh02)
 
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 ()
 

Private Attributes

DArray< Vec3fmVertices
 
DArray< Vec3fmNormals
 
DArray< Vec2fmTexCoords
 
DArray< uintmShapeIds
 
std::vector< std::shared_ptr< Material > > mMaterials
 
std::vector< std::shared_ptr< Shape > > mShapes
 

Additional Inherited Members

- 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.
 
- Protected Member Functions inherited from dyno::TopologyModule
virtual void updateTopology ()
 
- Protected Attributes inherited from dyno::OBase
std::vector< FBase * > fields_input
 
std::vector< FBase * > fields_output
 
std::vector< FBase * > fields_param
 

Detailed Description

Definition at line 70 of file TextureMesh.h.

Constructor & Destructor Documentation

◆ TextureMesh()

dyno::TextureMesh::TextureMesh ( )

◆ ~TextureMesh()

dyno::TextureMesh::~TextureMesh ( )
override

Member Function Documentation

◆ clear()

void dyno::TextureMesh::clear ( )

◆ materials()

std::vector< std::shared_ptr< Material > > & dyno::TextureMesh::materials ( )
inline

Definition at line 82 of file TextureMesh.h.

◆ merge()

void dyno::TextureMesh::merge ( const std::shared_ptr< TextureMesh > & texMesh01,
const std::shared_ptr< TextureMesh > & texMesh02 )

◆ normals()

DArray< Vec3f > & dyno::TextureMesh::normals ( )
inline

Definition at line 77 of file TextureMesh.h.

◆ shapeIds()

DArray< uint > & dyno::TextureMesh::shapeIds ( )
inline

Definition at line 79 of file TextureMesh.h.

◆ shapes()

std::vector< std::shared_ptr< Shape > > & dyno::TextureMesh::shapes ( )
inline

Definition at line 81 of file TextureMesh.h.

◆ texCoords()

DArray< Vec2f > & dyno::TextureMesh::texCoords ( )
inline

Definition at line 78 of file TextureMesh.h.

◆ vertices()

DArray< Vec3f > & dyno::TextureMesh::vertices ( )
inline

Definition at line 76 of file TextureMesh.h.

Member Data Documentation

◆ mMaterials

std::vector<std::shared_ptr<Material> > dyno::TextureMesh::mMaterials
private

Definition at line 94 of file TextureMesh.h.

◆ mNormals

DArray<Vec3f> dyno::TextureMesh::mNormals
private

Definition at line 90 of file TextureMesh.h.

◆ mShapeIds

DArray<uint> dyno::TextureMesh::mShapeIds
private

Definition at line 92 of file TextureMesh.h.

◆ mShapes

std::vector<std::shared_ptr<Shape> > dyno::TextureMesh::mShapes
private

Definition at line 95 of file TextureMesh.h.

◆ mTexCoords

DArray<Vec2f> dyno::TextureMesh::mTexCoords
private

Definition at line 91 of file TextureMesh.h.

◆ mVertices

DArray<Vec3f> dyno::TextureMesh::mVertices
private

Definition at line 89 of file TextureMesh.h.


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