Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::SimpleMesh Class Reference
+ Inheritance diagram for inviwo::SimpleMesh:

Public Member Functions

 SimpleMesh (DrawType dt=DrawType::Points, ConnectivityType ct=ConnectivityType::None)
 
 SimpleMesh (const SimpleMesh &rhs)=default
 
SimpleMeshoperator= (const SimpleMesh &that)=default
 
virtual SimpleMeshclone () const override
 
unsigned int addVertex (vec3 pos, vec3 texCoord, vec4 color)
 
void addIndex (unsigned int idx)
 
template<typename... Args>
void addIndices (Args &&...)
 
void setIndicesInfo (DrawType dt, ConnectivityType ct)
 
const Buffer< vec3 > * getVertexList () const
 
const Buffer< vec3 > * getTexCoordList () const
 
const Buffer< vec4 > * getColorList () const
 
const IndexBuffergetIndexList () const
 
template<typename... Args>
void addIndices (Args &&... args)
 
- Public Member Functions inherited from inviwo::Mesh
 Mesh (DrawType dt, ConnectivityType ct)
 
 Mesh (Mesh::MeshInfo meshInfo)
 
 Mesh (const BufferVector &buffers, const IndexVector &indices)
 
 Mesh (const Mesh &rhs)
 
 Mesh (const Mesh &rhs, NoData)
 
Meshoperator= (const Mesh &that)
 
virtual Document getInfo () const
 
void addBuffer (BufferInfo info, std::shared_ptr< BufferBase > buffer)
 
void addBuffer (BufferType type, std::shared_ptr< BufferBase > buffer)
 
void addBuffers (const BufferVector &buffers)
 
std::pair< BufferInfo, std::shared_ptr< BufferBase > > removeBuffer (size_t idx)
 
std::pair< BufferInfo, std::shared_ptr< BufferBase > > removeBuffer (BufferBase *buffer)
 
std::pair< BufferInfo, std::shared_ptr< BufferBase > > replaceBuffer (size_t idx, BufferInfo info, std::shared_ptr< BufferBase > buffer)
 
std::pair< BufferInfo, std::shared_ptr< BufferBase > > replaceBuffer (BufferBase *old, BufferInfo info, std::shared_ptr< BufferBase > buffer)
 
void setBuffer (size_t idx, BufferInfo info, std::shared_ptr< BufferBase > buffer)
 
void addIndices (MeshInfo info, std::shared_ptr< IndexBuffer > ind)
 
void addIndices (const IndexVector &indices)
 
void addIndicies (MeshInfo info, std::shared_ptr< IndexBuffer > ind)
 
std::shared_ptr< IndexBufferRAMaddIndexBuffer (DrawType dt, ConnectivityType ct)
 
void removeIndexBuffer (size_t idx)
 
void reserveSizeInVertexBuffer (size_t size)
 
void reserveIndexBuffers (size_t size)
 
const BufferVector & getBuffers () const
 
const IndexVector & getIndexBuffers () const
 
const BufferBasegetBuffer (size_t idx) const
 
BufferInfo getBufferInfo (size_t idx) const
 
BufferInfo getBufferInfo (BufferBase *buffer) const
 
void setBufferInfo (size_t idx, BufferInfo info)
 
void setBufferInfo (BufferBase *buffer, BufferInfo info)
 
const IndexBuffergetIndices (size_t idx) const
 
std::pair< const BufferBase *, int > findBuffer (BufferType type) const
 
std::pair< BufferBase *, int > findBuffer (BufferType type)
 
bool hasBuffer (BufferType type) const
 
BufferBasegetBuffer (size_t idx)
 
BufferBasegetBuffer (BufferType type)
 
IndexBuffergetIndices (size_t idx)
 
MeshInfo getDefaultMeshInfo () const
 
MeshInfo getIndexMeshInfo (size_t idx) const
 
size_t getNumberOfBuffers () const
 
size_t getNumberOfIndicies () const
 
void append (const Mesh &mesh)
 Append another mesh to this mesh.
 
virtual const AxisgetAxis (size_t index) const override
 
- Public Member Functions inherited from inviwo::DataGroup< Mesh, MeshRepresentation >
const T * getRepresentation () const
 
T * getEditableRepresentation ()
 
bool hasRepresentation () const
 
bool hasRepresentations () const
 
void clearRepresentations ()
 
- Public Member Functions inherited from inviwo::SpatialEntity
 SpatialEntity (const glm::mat4 &modelMatrix)
 
 SpatialEntity (const glm::mat4 &modelMatrix, const glm::mat4 &worldMatrix)
 
 SpatialEntity (const SpatialEntity &rhs)
 
SpatialEntityoperator= (const SpatialEntity &that)
 
glm::vec3 getOffset () const
 
void setOffset (const glm::vec3 &offset)
 
glm::mat3 getBasis () const
 
void setBasis (const glm::mat3 &basis)
 
glm::mat4 getModelMatrix () const
 
void setModelMatrix (const glm::mat4 &modelMatrix)
 
glm::mat4 getWorldMatrix () const
 
void setWorldMatrix (const glm::mat4 &worldMatrix)
 
virtual const SpatialCoordinateTransformergetCoordinateTransformer () const
 
virtual const SpatialCameraCoordinateTransformergetCoordinateTransformer (const Camera &camera) const
 
- Public Member Functions inherited from inviwo::MetaDataOwner
 MetaDataOwner (const MetaDataOwner &rhs)=default
 
 MetaDataOwner (MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (const MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (MetaDataOwner &)=default
 
void copyMetaDataFrom (const MetaDataOwner &src)
 
void copyMetaDataTo (MetaDataOwner &dst)
 
template<typename T >
requires std::derived_from<T, MetaData>
T * createMetaData (std::string_view key)
 
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Settable<T, U>
void setMetaData (std::string_view key, U value)
 
template<typename T >
requires std::derived_from<T, MetaData>
bool unsetMetaData (std::string_view key)
 unset, i.e. remove the metadata entry matching the given key and type
 
template<typename T , typename U >
requires std::derived_from<T, MetaData> && Gettable<T, U>
getMetaData (std::string_view key, U val) const
 
template<typename T >
requires std::derived_from<T, MetaData>
T * getMetaData (std::string_view key)
 
template<typename T >
requires std::derived_from<T, MetaData>
const T * getMetaData (std::string_view key) const
 
MetaDataMapgetMetaDataMap ()
 
const MetaDataMapgetMetaDataMap () const
 
bool hasMetaData (std::string_view key) const
 
template<typename T >
requires std::derived_from<T, MetaData>
bool hasMetaData (std::string_view key) const
 
void serialize (Serializer &s) const
 
void deserialize (Deserializer &d)
 

Additional Inherited Members

- Public Types inherited from inviwo::Mesh
using IndexVector = std::vector<std::pair<MeshInfo, std::shared_ptr<IndexBuffer>>>
 
using BufferVector = std::vector<std::pair<BufferInfo, std::shared_ptr<BufferBase>>>
 
- Public Types inherited from inviwo::DataGroup< Mesh, MeshRepresentation >
using self
 
using repr
 
- Public Attributes inherited from inviwo::Mesh
std::array< Axis, 3 > axes
 
- Static Public Attributes inherited from inviwo::Mesh
static constexpr uvec3 colorCode {188, 188, 101}
 
static constexpr std::string_view classIdentifier {"org.inviwo.Mesh"}
 
static constexpr std::string_view dataName {"Mesh"}
 
- Protected Member Functions inherited from inviwo::DataGroup< Mesh, MeshRepresentation >
 DataGroup (const DataGroup< Mesh, MeshRepresentation > &rhs)
 
DataGroup< Mesh, MeshRepresentation > & operator= (const DataGroup< Mesh, MeshRepresentation > &rhs)
 
- Protected Attributes inherited from inviwo::Mesh
BufferVector buffers_
 
IndexVector indices_
 
MeshInfo meshInfo_
 
- Protected Attributes inherited from inviwo::DataGroup< Mesh, MeshRepresentation >
std::mutex mutex_
 
std::unordered_map< std::type_index, std::shared_ptr< MeshRepresentation > > representations_
 
- Protected Attributes inherited from inviwo::SpatialEntity
std::unique_ptr< SpatialCoordinateTransformertransformer_
 
std::unique_ptr< SpatialCameraCoordinateTransformercameraTransformer_
 
glm::mat4 modelMatrix_
 
glm::mat4 worldMatrix_
 
- Protected Attributes inherited from inviwo::MetaDataOwner
MetaDataMap metaData_
 

Member Function Documentation

◆ clone()

virtual SimpleMesh * inviwo::SimpleMesh::clone ( ) const
overridevirtual

Reimplemented from inviwo::Mesh.


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