|
| | ParticlesShape (double radius=0.0) |
| | Constructor. More...
|
| |
| | ParticlesShape (const ParticlesShape &other) |
| | Copy constructor. More...
|
| |
| template<class V > |
| | ParticlesShape (const SurgSim::DataStructures::Vertices< V > &other) |
| | Copy constructor from another Vertices type. More...
|
| |
| template<class V > |
| ParticlesShape & | operator= (const Vertices< V > &other) |
| | Assignment when the template data is a different type. More...
|
| |
|
| SURGSIM_CLASSNAME (SurgSim::Math::ParticlesShape) |
| |
| const std::shared_ptr< const SurgSim::DataStructures::AabbTree > | getAabbTree () const |
| | Get the AabbTree. More...
|
| |
| void | setRadius (double radius) |
| | Set the particles' radius. More...
|
| |
| double | getRadius () const |
| | Get the radius of the particles. More...
|
| |
| int | getType () const override |
| |
| double | getVolume () const override |
| | Get the volume of the shape. More...
|
| |
| Vector3d | getCenter () const override |
| | Get the volumetric center of the shape. More...
|
| |
| Matrix33d | getSecondMomentOfVolume () const override |
| | Get the second central moment of the volume, commonly used to calculate the moment of inertia matrix. More...
|
| |
| std::shared_ptr< Shape > | getTransformed (const RigidTransform3d &pose) const override |
| | Get a copy of this shape with an applied rigid transform. More...
|
| |
| bool | isValid () const override |
| | Check if the shape is valid. More...
|
| |
| const Math::Aabbd & | getBoundingBox () const override |
| |
| void | setPose (const RigidTransform3d &pose) override |
| | Set the pose on a transformable shape. More...
|
| |
|
void | updateShape () override |
| | Update the internals of a transformable shape.
|
| |
| void | updateShapePartial () override |
| | Update some of the internals of a transformable shape. More...
|
| |
|
template<class V > |
| ParticlesShape & | operator= (const SurgSim::DataStructures::Vertices< V > &other) |
| |
| bool | isTransformable () const override |
| |
| void | setInitialVertices (const DataStructures::Vertices< DataStructures::EmptyData > &vertices) |
| | Set the initial Vertices. More...
|
| |
| void | setInitialVertices (DataStructures::Vertices< DataStructures::EmptyData > &&vertices) |
| | Set the initial Vertices via r-value. More...
|
| |
| const DataStructures::Vertices< DataStructures::EmptyData > & | getInitialVertices () const |
| | Get the initial Vertices. More...
|
| |
|
| Shape () |
| | Constructor.
|
| |
|
virtual | ~Shape () |
| | Destructor.
|
| |
|
virtual std::string | getClassName () const |
| | Get class name.
|
| |
|
| 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 |
| |
|
| 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< DataStructures::EmptyData > & | 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...
|
| |
Particles Shape: A shape consisting of a group of particles of equal radius.