
#include <kinbody.h>

Public Types | |
| enum | GeomType { GeomNone = 0, GeomBox = 1, GeomSphere = 2, GeomCylinder = 3, GeomTrimesh = 4 } |
The type of geometry primitive. More... | |
Public Member Functions | |
| GEOMPROPERTIES (boost::shared_ptr< Link > parent) | |
| virtual | ~GEOMPROPERTIES () |
| const Transform & | GetTransform () const |
| Local transformation of the geom primitive with respect to the link's coordinate system. | |
| GeomType | GetType () const |
| const Vector & | GetRenderScale () const |
| const std::string & | GetRenderFilename () const |
| render resource file, should be transformed by _t before rendering | |
| float | GetTransparency () const |
| bool | IsDraw () const RAVE_DEPRECATED |
| bool | IsVisible () const |
| bool | IsModifiable () const |
| dReal | GetSphereRadius () const |
| dReal | GetCylinderRadius () const |
| dReal | GetCylinderHeight () const |
| const Vector & | GetBoxExtents () const |
| const RaveVector< float > & | GetDiffuseColor () const |
| const RaveVector< float > & | GetAmbientColor () const |
| const TRIMESH & | GetCollisionMesh () const |
| trimesh representation of the collision data of this object in this local coordinate system | |
| virtual AABB | ComputeAABB (const Transform &trans) const |
| returns an axis aligned bounding box given that the geometry is transformed by trans | |
| virtual void | serialize (std::ostream &o, int options) const |
| virtual void | SetCollisionMesh (const TRIMESH &mesh) |
| sets a new collision mesh and notifies every registered callback about it | |
| virtual bool | SetVisible (bool visible) |
| sets visible flag. if changed, notifies every registered callback about it. | |
| void | SetDraw (bool bDraw) RAVE_DEPRECATED |
| virtual void | SetTransparency (float f) |
| set transparency level (0 is opaque) | |
| virtual void | SetDiffuseColor (const RaveVector< float > &color) |
| override diffuse color of geometry material | |
| virtual void | SetAmbientColor (const RaveVector< float > &color) |
| override ambient color of geometry material | |
| virtual bool | ValidateContactNormal (const Vector &position, Vector &normal) const |
| validates the contact normal on the surface of the geometry and makes sure the normal faces "outside" of the shape. | |
| virtual void | SetRenderFilename (const std::string &renderfilename) |
| sets a new render filename for the geometry. This does not change the collision | |
Protected Member Functions | |
| bool | InitCollisionMesh (float fTessellation=1) |
Protected Attributes | |
| boost::weak_ptr< Link > | _parent |
| Transform | _t |
| see GetTransform | |
| Vector | vGeomData |
| RaveVector< float > | diffuseColor |
| RaveVector< float > | ambientColor |
| hints for how to color the meshes | |
| TRIMESH | collisionmesh |
| see GetCollisionMesh | |
| GeomType | _type |
| the type of geometry primitive | |
| std::string | _renderfilename |
| Vector | vRenderScale |
| render scale of the object (x,y,z) | |
| float | ftransparency |
| value from 0-1 for the transparency of the rendered object, 0 is opaque | |
| bool | _bVisible |
| if true, geometry is visible as part of the 3d model (default is true) | |
| bool | _bModifiable |
| if true, object geometry can be dynamically modified (default is true) | |
Describes the properties of a basic geometric primitive. Contains everything associated with a physical body along with a seprate (optional) render file.
Definition at line 97 of file kinbody.h.
| OpenRAVE::KinBody::Link::GEOMPROPERTIES::GEOMPROPERTIES | ( | boost::shared_ptr< Link > | parent | ) |
| virtual OpenRAVE::KinBody::Link::GEOMPROPERTIES::~GEOMPROPERTIES | ( | ) | [inline, virtual] |
| AABB OpenRAVE::KinBody::Link::GEOMPROPERTIES::ComputeAABB | ( | const Transform & | trans | ) | const [virtual] |
returns an axis aligned bounding box given that the geometry is transformed by trans
Definition at line 150 of file kinbodylink.cpp.
| const RaveVector<float>& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetAmbientColor | ( | ) | const [inline] |
| const Vector& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetBoxExtents | ( | ) | const [inline] |
| const TRIMESH& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetCollisionMesh | ( | ) | const [inline] |
trimesh representation of the collision data of this object in this local coordinate system
Should be transformed by GEOMPROPERTIES::GetTransform() before rendering. For spheres and cylinders, an appropriate discretization value is chosen.
| dReal OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetCylinderHeight | ( | ) | const [inline] |
| dReal OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetCylinderRadius | ( | ) | const [inline] |
| const RaveVector<float>& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetDiffuseColor | ( | ) | const [inline] |
| const std::string& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetRenderFilename | ( | ) | const [inline] |
| const Vector& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetRenderScale | ( | ) | const [inline] |
| dReal OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetSphereRadius | ( | ) | const [inline] |
| const Transform& OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetTransform | ( | ) | const [inline] |
| float OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetTransparency | ( | ) | const [inline] |
| GeomType OpenRAVE::KinBody::Link::GEOMPROPERTIES::GetType | ( | ) | const [inline] |
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::InitCollisionMesh | ( | float | fTessellation = 1 |
) | [protected] |
triangulates the geometry object and initializes collisionmesh. GeomTrimesh types must already be triangulated
| fTessellation | to control how fine the triangles need to be. 1.0f is the default value |
Definition at line 320 of file kinbodylink.cpp.
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::IsDraw | ( | ) | const [inline] |
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::IsModifiable | ( | ) | const [inline] |
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::IsVisible | ( | ) | const [inline] |
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::serialize | ( | std::ostream & | o, | |
| int | options | |||
| ) | const [virtual] |
Definition at line 404 of file kinbodylink.cpp.
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetAmbientColor | ( | const RaveVector< float > & | color | ) | [virtual] |
override ambient color of geometry material
Definition at line 450 of file kinbodylink.cpp.
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetCollisionMesh | ( | const TRIMESH & | mesh | ) | [virtual] |
sets a new collision mesh and notifies every registered callback about it
Definition at line 417 of file kinbodylink.cpp.
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetDiffuseColor | ( | const RaveVector< float > & | color | ) | [virtual] |
override diffuse color of geometry material
Definition at line 443 of file kinbodylink.cpp.
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetDraw | ( | bool | bDraw | ) | [inline] |
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetRenderFilename | ( | const std::string & | renderfilename | ) | [virtual] |
sets a new render filename for the geometry. This does not change the collision
Definition at line 563 of file kinbodylink.cpp.
| void OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetTransparency | ( | float | f | ) | [virtual] |
set transparency level (0 is opaque)
Definition at line 436 of file kinbodylink.cpp.
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::SetVisible | ( | bool | visible | ) | [virtual] |
sets visible flag. if changed, notifies every registered callback about it.
Definition at line 425 of file kinbodylink.cpp.
| bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::ValidateContactNormal | ( | const Vector & | position, | |
| Vector & | normal | |||
| ) | const [virtual] |
validates the contact normal on the surface of the geometry and makes sure the normal faces "outside" of the shape.
| position | the position of the contact point specified in the link's coordinate system | |
| normal | the unit normal of the contact point specified in the link's coordinate system |
Definition at line 490 of file kinbodylink.cpp.
bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::_bModifiable [protected] |
bool OpenRAVE::KinBody::Link::GEOMPROPERTIES::_bVisible [protected] |
boost::weak_ptr<Link> OpenRAVE::KinBody::Link::GEOMPROPERTIES::_parent [protected] |
std::string OpenRAVE::KinBody::Link::GEOMPROPERTIES::_renderfilename [protected] |
Transform OpenRAVE::KinBody::Link::GEOMPROPERTIES::_t [protected] |
see GetTransform
RaveVector<float> OpenRAVE::KinBody::Link::GEOMPROPERTIES::ambientColor [protected] |
see GetCollisionMesh
RaveVector<float> OpenRAVE::KinBody::Link::GEOMPROPERTIES::diffuseColor [protected] |
float OpenRAVE::KinBody::Link::GEOMPROPERTIES::ftransparency [protected] |
1.7.1