FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
The mesh data object contains vertices and optionally a set of lines and/or triangles. Each vertex is represented as a MeshVertex and the lines and triangles as MeshLine and MeshTriangle respectively. More...
#include <Mesh.hpp>
Public Member Functions | |
void | create (std::vector< MeshVertex > vertices, std::vector< MeshLine > lines={}, std::vector< MeshTriangle > triangles={}) |
void | create (uint nrOfVertices, uint nrOfLInes, uint nrOfTriangles, bool useColors, bool useNormals, bool useEBO) |
VertexBufferObjectAccess::pointer | getVertexBufferObjectAccess (accessType access) |
MeshAccess::pointer | getMeshAccess (accessType access) |
MeshOpenCLAccess::pointer | getOpenCLAccess (accessType access, OpenCLDevice::pointer device) |
int | getNrOfTriangles () |
int | getNrOfLines () |
int | getNrOfVertices () |
void | setBoundingBox (DataBoundingBox box) |
~Mesh () | |
![]() | |
SpatialDataObject () | |
virtual DataBoundingBox | getBoundingBox () const |
virtual DataBoundingBox | getTransformedBoundingBox () const |
SceneGraphNode::pointer | getSceneGraphNode () const |
![]() | |
DataObject () | |
void | setMetadata (std::string name, std::string value) |
void | setMetadata (std::unordered_map< std::string, std::string > metadata) |
std::string | getMetadata (std::string name) const |
std::unordered_map< std::string, std::string > | getMetadata () const |
void | deleteMetadata (std::string name) |
uint64_t | getTimestamp () const |
void | updateModifiedTimestamp () |
virtual | ~DataObject () |
virtual std::string | getNameOfClass () const =0 |
uint64_t | getCreationTimestamp () const |
void | setCreationTimestamp (uint64_t timestamp) |
void | setLastFrame (std::string streamer) |
bool | isLastFrame () |
bool | isLastFrame (std::string streamer) |
std::unordered_set< std::string > | getLastFrame () |
void | setFrameData (std::string name, std::string value) |
std::string | getFrameData (std::string name) |
std::unordered_map< std::string, std::string > | getFrameData () |
void | accessFinished () |
![]() | |
Object () | |
virtual | ~Object () |
Reporter & | getReporter () |
Friends | |
class | MeshAccess |
class | VertexBufferObjectAccess |
class | MeshOpenCLAccess |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< SpatialDataObject > | pointer |
![]() | |
typedef std::shared_ptr< DataObject > | pointer |
![]() | |
typedef std::shared_ptr< Object > | pointer |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
static std::string | getStaticNameOfClass () |
![]() | |
void | blockIfBeingWrittenTo () |
void | blockIfBeingAccessed () |
![]() | |
Reporter & | reportError () |
Reporter & | reportWarning () |
Reporter & | reportInfo () |
ReporterEnd | reportEnd () const |
![]() | |
DataBoundingBox | mBoundingBox |
![]() | |
std::mutex | mDataIsBeingWrittenToMutex |
std::condition_variable | mDataIsBeingWrittenToCondition |
bool | mDataIsBeingWrittenTo |
std::mutex | mDataIsBeingAccessedMutex |
std::condition_variable | mDataIsBeingAccessedCondition |
bool | mDataIsBeingAccessed |
![]() | |
std::weak_ptr< Object > | mPtr |
The mesh data object contains vertices and optionally a set of lines and/or triangles. Each vertex is represented as a MeshVertex and the lines and triangles as MeshLine and MeshTriangle respectively.
fast::Mesh::~Mesh | ( | ) |
void fast::Mesh::create | ( | std::vector< MeshVertex > | vertices, |
std::vector< MeshLine > | lines = {} , |
||
std::vector< MeshTriangle > | triangles = {} |
||
) |
void fast::Mesh::create | ( | uint | nrOfVertices, |
uint | nrOfLInes, | ||
uint | nrOfTriangles, | ||
bool | useColors, | ||
bool | useNormals, | ||
bool | useEBO | ||
) |
MeshAccess::pointer fast::Mesh::getMeshAccess | ( | accessType | access | ) |
int fast::Mesh::getNrOfLines | ( | ) |
int fast::Mesh::getNrOfTriangles | ( | ) |
int fast::Mesh::getNrOfVertices | ( | ) |
MeshOpenCLAccess::pointer fast::Mesh::getOpenCLAccess | ( | accessType | access, |
OpenCLDevice::pointer | device | ||
) |
VertexBufferObjectAccess::pointer fast::Mesh::getVertexBufferObjectAccess | ( | accessType | access | ) |
void fast::Mesh::setBoundingBox | ( | DataBoundingBox | box | ) |
|
friend |
|
friend |
|
friend |