![]() |
Radium Engine
1.6.3
|
#include <Core/Asset/GeometryData.hpp>
Inheritance diagram for Ra::Core::Asset::GeometryData:
Collaboration diagram for Ra::Core::Asset::GeometryData:Public Types | |
| enum | GeometryType { UNKNOWN = 1 << 0 , POINT_CLOUD = 1 << 1 , LINE_MESH = 1 << 2 , TRI_MESH = 1 << 3 , QUAD_MESH = 1 << 4 , POLY_MESH = 1 << 5 , TETRA_MESH = 1 << 6 , HEX_MESH = 1 << 7 } |
| using | ColorArray = Vector4Array |
Public Member Functions | |
| GeometryData (const std::string &name="", const GeometryType &type=UNKNOWN) | |
| GeometryData (const GeometryData &data)=delete | |
| void | displayInfo () const |
| Print stast info to the Debug output. | |
Data access | |
| void | setName (const std::string &name) |
| Return the name of the object. | |
| GeometryType | getType () const |
| Return the type of geometry. | |
| void | setType (const GeometryType &type) |
| Set the type of geometry. | |
| Transform | getFrame () const |
| Return the Transform of the object. | |
| void | setFrame (const Transform &frame) |
| Set the Transform of the object. | |
| const MaterialData & | getMaterial () const |
| Return the MaterialData associated to the objet. | |
| void | setMaterial (MaterialData *material) |
| Set the MaterialData for the object. | |
| Geometry::MultiIndexedGeometry & | getGeometry () |
| Read/write access to the multiIndexedGeometry;. | |
| const Geometry::MultiIndexedGeometry & | getGeometry () const |
| Read only access to the multiIndexedGeometry;. | |
Status queries | |
| bool | isPointCloud () const |
| Return true if the object is a Point Cloud. | |
| bool | isLineMesh () const |
| Return true if the object is a Line Mesh. | |
| bool | isTriMesh () const |
| Return true if the object is a Triangle Mesh. | |
| bool | isQuadMesh () const |
| Return true if the object is a Quadrangle Mesh. | |
| bool | isPolyMesh () const |
| bool | isTetraMesh () const |
| Return true if the object is a Tetrahedron Mesh. | |
| bool | isHexMesh () const |
| Return true if the object is a Hexahedron Mesh. | |
| bool | hasEdges () const |
| Return true if the object has lines. | |
| bool | hasFaces () const |
| Return true if the object has faces. | |
| bool | hasPolyhedra () const |
| Return true if the object has polyhedra. | |
| bool | hasMaterial () const |
| Return true if the object has MaterialData. | |
| void | setPrimitiveCount (int n) |
| Used to track easily the number of primitives in the geometry data. | |
| int | getPrimitiveCount () const |
| Return the number of primitives in the geometry data. | |
Public Member Functions inherited from Ra::Core::Asset::AssetData | |
| AssetData (const std::string &name) | |
| Construct an asset data given its name. | |
| AssetData (const AssetData &other)=default | |
| Copy constructor. Default here. | |
| virtual | ~AssetData () |
| Simple delete operator. | |
| virtual const std::string & | getName () const |
| Acces to the name of the asset. | |
Protected Attributes | |
| Transform | m_frame |
| The transformation of the object. | |
| GeometryType | m_type |
| The type of geometry for the object. | |
| Core::Geometry::MultiIndexedGeometry | m_geometry |
| Named attributes. | |
| int | m_primitiveCount { -1 } |
| Simple tracking of geometric primitive number. | |
| std::shared_ptr< MaterialData > | m_material |
| The MaterialData for the object. | |
Protected Attributes inherited from Ra::Core::Asset::AssetData | |
| std::string | m_name |
The GeometryData class stores all the geometry related data of a loaded object.
Definition at line 28 of file GeometryData.hpp.
| using Ra::Core::Asset::GeometryData::ColorArray = Vector4Array |
Definition at line 31 of file GeometryData.hpp.
The type of geometry.
Definition at line 37 of file GeometryData.hpp.
| Ra::Core::Asset::GeometryData::GeometryData | ( | const std::string & | name = "", |
| const GeometryType & | type = UNKNOWN ) |
Definition at line 13 of file GeometryData.cpp.
| Ra::Core::Asset::GeometryData::~GeometryData | ( | ) |
Definition at line 20 of file GeometryData.cpp.
| void Ra::Core::Asset::GeometryData::displayInfo | ( | ) | const |
Print stast info to the Debug output.
Definition at line 22 of file GeometryData.cpp.
|
inline |
Return the Transform of the object.
Definition at line 163 of file GeometryData.hpp.
|
inline |
Read/write access to the multiIndexedGeometry;.
Definition at line 241 of file GeometryData.hpp.
|
inline |
Read only access to the multiIndexedGeometry;.
Definition at line 237 of file GeometryData.hpp.
|
inline |
Return the MaterialData associated to the objet.
Definition at line 171 of file GeometryData.hpp.
|
inline |
Return the number of primitives in the geometry data.
Definition at line 248 of file GeometryData.hpp.
|
inline |
Return the type of geometry.
Definition at line 155 of file GeometryData.hpp.
|
inline |
Return true if the object has lines.
Definition at line 207 of file GeometryData.hpp.
Here is the call graph for this function:
|
inline |
Return true if the object has faces.
Definition at line 211 of file GeometryData.hpp.
Here is the call graph for this function:
|
inline |
Return true if the object has MaterialData.
Definition at line 233 of file GeometryData.hpp.
|
inline |
Return true if the object has polyhedra.
Definition at line 229 of file GeometryData.hpp.
Here is the call graph for this function:
|
inline |
Return true if the object is a Hexahedron Mesh.
Definition at line 203 of file GeometryData.hpp.
|
inline |
Return true if the object is a Line Mesh.
Definition at line 183 of file GeometryData.hpp.
|
inline |
Return true if the object is a Point Cloud.
Definition at line 179 of file GeometryData.hpp.
|
inline |
Return true if the object is a Polygon Mesh.
Definition at line 195 of file GeometryData.hpp.
|
inline |
Return true if the object is a Quadrangle Mesh.
Definition at line 191 of file GeometryData.hpp.
|
inline |
Return true if the object is a Tetrahedron Mesh.
Definition at line 199 of file GeometryData.hpp.
|
inline |
Return true if the object is a Triangle Mesh.
Definition at line 187 of file GeometryData.hpp.
|
inline |
Set the Transform of the object.
Definition at line 167 of file GeometryData.hpp.
|
inline |
Set the MaterialData for the object.
Definition at line 175 of file GeometryData.hpp.
|
inline |
Return the name of the object.
Definition at line 151 of file GeometryData.hpp.
|
inline |
Used to track easily the number of primitives in the geometry data.
Definition at line 245 of file GeometryData.hpp.
|
inline |
Set the type of geometry.
Definition at line 159 of file GeometryData.hpp.
|
protected |
The transformation of the object.
Definition at line 136 of file GeometryData.hpp.
|
protected |
Named attributes.
Definition at line 142 of file GeometryData.hpp.
|
protected |
The MaterialData for the object.
Definition at line 148 of file GeometryData.hpp.
|
protected |
Simple tracking of geometric primitive number.
Definition at line 145 of file GeometryData.hpp.
|
protected |
The type of geometry for the object.
Definition at line 139 of file GeometryData.hpp.