|
| MockTriangleMesh () |
| Constructor. Start out with no vertices and 0 updates.
|
|
| SURGSIM_CLASSNAME (MockTriangleMesh) |
|
virtual | ~MockTriangleMesh () |
| Destructor.
|
|
size_t | createVertex (const SurgSim::Math::Vector3d &position, const SurgSim::Math::Vector3d &normal) |
| Create a new vertex in the mesh. More...
|
|
size_t | createEdge (const std::array< size_t, 2 > &vertices) |
| Create a new edge in the mesh. More...
|
|
size_t | createTriangle (const std::array< size_t, 3 > &vertices, const std::array< size_t, 3 > &edges) |
| Create a new triangle in the mesh. More...
|
|
const SurgSim::Math::Vector3d & | getVertexNormal (size_t id) const |
| Returns the normal of a vertex.
|
|
int | getNumUpdates () const |
| Returns the number of updates performed on the mesh.
|
|
| TriangleMesh () |
| Constructor. The mesh is initially empty (no vertices, no edges, no triangles).
|
|
| TriangleMesh (const TriangleMesh< MockVertexData, MockEdgeData, MockTriangleData > &other) |
| Copy constructor when the template data is the same type. More...
|
|
| TriangleMesh (const TriangleMesh< V, E, T > &other) |
| Copy constructor when the template data is a different type. More...
|
|
| TriangleMesh (TriangleMesh &&other) |
| Move Constructor. More...
|
|
virtual | ~TriangleMesh () |
| Destructor.
|
|
TriangleMesh< MockVertexData, MockEdgeData, MockTriangleData > & | operator= (const TriangleMesh< MockVertexData, MockEdgeData, MockTriangleData > &other) |
| Copy Assignment. More...
|
|
TriangleMesh< MockVertexData, MockEdgeData, MockTriangleData > & | operator= (TriangleMesh< MockVertexData, MockEdgeData, MockTriangleData > &&other) |
| Move Assignment. More...
|
|
std::string | getClassName () const override |
| Support serialization with a classname. More...
|
|
size_t | addEdge (const EdgeType &edge) |
| Adds an edge to the mesh. More...
|
|
size_t | addTriangle (const TriangleType &triangle) |
| Adds a triangle to the mesh. More...
|
|
size_t | getNumEdges () const |
| Get the number of edges. More...
|
|
size_t | getNumTriangles () const |
| Get the number of triangles. More...
|
|
const std::vector< EdgeType > & | getEdges () const |
| Retrieve all edges. More...
|
|
std::vector< EdgeType > & | getEdges () |
| Retrieve all edges (non const version) More...
|
|
const std::vector< TriangleType > & | getTriangles () const |
| Retrieve all triangles. More...
|
|
std::vector< TriangleType > & | getTriangles () |
| Retrieve all triangles (non const version) More...
|
|
const EdgeType & | getEdge (size_t id) const |
| Retrieve a specific edge. More...
|
|
EdgeType & | getEdge (size_t id) |
| Retrieve a specific edge (non const version) More...
|
|
std::array< SurgSim::Math::Vector3d, 2 > | getEdgePositions (size_t id) const |
| Returns an array of the edge's vertices' positions. More...
|
|
const TriangleType & | getTriangle (size_t id) const |
| Retrieve a specific triangle. More...
|
|
TriangleType & | getTriangle (size_t id) |
| Retrieve a specific triangle (non const version) More...
|
|
void | removeTriangle (size_t id) |
| Marks a triangle as invalid, the triangle cannot be accessed via getTriangle anymore. More...
|
|
std::array< SurgSim::Math::Vector3d, 3 > | getTrianglePositions (size_t id) const |
| Returns an array of the triangle's vertices' positions. More...
|
|
bool | isValid () const |
| Test if the TriangleMesh is valid (valid vertex Ids used in all MeshElements) More...
|
|
void | save (const std::string &fileName) |
| Save the triangle mesh in the ply format. More...
|
|
| Vertices () |
| Constructor.
|
|
| Vertices (const Vertices< V > &other) |
| Copy constructor when the template data is a different type In this case, no data will be copied. More...
|
|
Vertices< MockVertexData > & | operator= (const Vertices< V > &other) |
| Assignment when the template data is a different type In this case, no data will be copied. More...
|
|
virtual | ~Vertices () |
| Destructor.
|
|
void | clear () |
| Clear mesh to return to an empty state (no vertices).
|
|
bool | update () |
| Performs any updates that are required when the vertices are modified. More...
|
|
size_t | addVertex (const VertexType &vertex) |
| Adds a vertex to the mesh. More...
|
|
size_t | getNumVertices () const |
| Returns the number of vertices in this mesh.
|
|
const VertexType & | getVertex (size_t id) const |
| Returns the specified vertex.
|
|
VertexType & | getVertex (size_t id) |
| Returns the specified vertex (non const version).
|
|
const std::vector< VertexType > & | getVertices () const |
| Returns a vector containing the position of each vertex.
|
|
std::vector< VertexType > & | getVertices () |
| Returns a vector containing the position of each vertex (non const version).
|
|
void | setVertexPosition (size_t id, const SurgSim::Math::Vector3d &position) |
| Sets the position of a vertex. More...
|
|
const SurgSim::Math::Vector3d & | getVertexPosition (size_t id) const |
| Returns the position of a vertex. More...
|
|
void | setVertexPositions (const std::vector< SurgSim::Math::Vector3d > &positions, bool doUpdate=true) |
| Sets the position of each vertex. More...
|
|
void | transform (const Math::RigidTransform3d &pose) |
| Apply a rigid transform to each vertex. More...
|
|
bool | operator== (const Vertices &mesh) const |
| Compares the mesh with another one (equality) More...
|
|
bool | operator!= (const Vertices &mesh) const |
| Compares the mesh with another one (inequality) More...
|
|
| Asset () |
| Constructor.
|
|
| Asset (const Asset &rhs) |
| Copy Constructor.
|
|
virtual | ~Asset () |
| Destructor.
|
|
void | load (const std::string &fileName, const SurgSim::Framework::ApplicationData &data) |
| Load a file with given name using 'data' as look up path(s). More...
|
|
void | load (const std::string &fileName) |
| Overloaded function using SurgSim::Framework::Runtime::getApplicationData() as look up path(s). More...
|
|
std::string | getFileName () const |
| Return the name of file loaded by this class. More...
|
|
| Accessible () |
| Default Constructor.
|
|
| ~Accessible () |
| Destructor.
|
|
template<class T > |
T | getValue (const std::string &name) const |
| Retrieves the value with the name by executing the getter if it is found and tries to convert it to the given type. More...
|
|
boost::any | getValue (const std::string &name) const |
| Retrieves the value with the name by executing the getter if it is found. More...
|
|
template<class T > |
bool | getValue (const std::string &name, T *value) const |
| Retrieves the value with the name by executing the getter if it is found, and converts it to the type of the output parameter. More...
|
|
void | setValue (const std::string &name, const boost::any &value) |
| Sets a value of a property that has setter. More...
|
|
bool | isReadable (const std::string &name) const |
| Check whether a property is readable. More...
|
|
bool | isWriteable (const std::string &name) const |
| Check whether a property is writable. More...
|
|
void | setGetter (const std::string &name, GetterType func) |
| Sets a getter for a given property. More...
|
|
void | setSetter (const std::string &name, SetterType func) |
| Sets a setter for a given property. More...
|
|
void | setAccessors (const std::string &name, GetterType getter, SetterType setter) |
| Sets the accessors getter and setter in one function. More...
|
|
void | removeAccessors (const std::string &name) |
| Removes all the accessors (getter and setter) for a given property. More...
|
|
void | forwardProperty (const std::string &name, const Accessible &target, const std::string &targetProperty) |
| Adds a property with the given name that uses the targets accessors, in effect forwarding the value to the target. More...
|
|
void | setSerializable (const std::string &name, EncoderType encoder, DecoderType decoder) |
| Sets the functions used to convert data from and to a YAML::Node. More...
|
|
void | setDecoder (const std::string &name, DecoderType decoder) |
| Sets the functions used to convert data from a YAML::Node. More...
|
|
YAML::Node | encode () const |
| Encode this Accessible to a YAML::Node. More...
|
|
void | decode (const YAML::Node &node, const std::vector< std::string > &ignoredProperties=std::vector< std::string >()) |
| Decode this Accessible from a YAML::Node, will throw an exception if the data type cannot be converted. More...
|
|
std::vector< std::string > | getProperties () |
|
template<> |
boost::any | getValue (const std::string &name) const |
|