DART  6.10.1
dart::gui::osg::render Namespace Reference

Classes

class  BoxShapeGeode
 
class  BoxShapeDrawable
 
class  BoxShapeNode
 
class  CapsuleShapeGeode
 
class  CapsuleShapeDrawable
 
class  CapsuleShapeNode
 
class  ConeShapeGeode
 
class  ConeShapeDrawable
 
class  ConeShapeNode
 
class  CylinderShapeGeode
 
class  CylinderShapeDrawable
 
class  CylinderShapeNode
 
class  EllipsoidShapeGeode
 
class  EllipsoidShapeDrawable
 
class  EllipsoidShapeNode
 
class  HeightmapShapeGeode
 
class  HeightmapShapeNode
 
class  HeightmapShapeDrawable
 
class  LineSegmentShapeGeode
 
class  LineSegmentShapeDrawable
 
class  LineSegmentShapeNode
 
class  osgAiNode
 
class  MeshShapeGeode
 
class  MeshShapeGeometry
 
class  MeshShapeNode
 
class  MultiSphereShapeGeode
 
class  MultiSphereShapeDrawable
 
class  MultiSphereShapeNode
 
class  PlaneShapeGeode
 
class  PlaneShapeDrawable
 
class  PlaneShapeNode
 
class  BoxDrawable
 
class  SquareDrawable
 
class  CircleDrawable
 
class  PointNode
 
class  BoxPointNode
 
class  BillboardPointNode
 
class  PointNodes
 
class  NonVertexPointNodes
 
class  VertexPointNodes
 
class  PointCloudShapeNode
 
class  PyramidShapeGeode
 
class  PyramidShapeDrawable
 
class  PyramidShapeNode
 
class  ShapeNode
 
class  SoftMeshShapeGeode
 
class  SoftMeshShapeDrawable
 
class  SoftMeshShapeNode
 
class  SphereShapeGeode
 
class  SphereShapeDrawable
 
class  SphereShapeNode
 
class  WarningShapeNode
 

Functions

double smallestComponent (const Eigen::Vector3d &v)
 
template<typename S >
Eigen::Matrix< S, 3, 1 > getNormal (const Eigen::Matrix< S, 3, 1 > &p1, const Eigen::Matrix< S, 3, 1 > &p2, const Eigen::Matrix< S, 3, 1 > &p3)
 
inline ::osg::Vec3f getNormal (const ::osg::Vec3f &p1, const ::osg::Vec3f &p2, const ::osg::Vec3f &p3)
 
inline ::osg::Vec3d getNormal (const ::osg::Vec3d &p1, const ::osg::Vec3d &p2, const ::osg::Vec3d &p3)
 
template<typename S >
void setVertices (const typename dynamics::HeightmapShape< S >::HeightField &heightmap, typename HeightmapShapeDrawable< S >::Vec3Array &vertices, ::osg::DrawElementsUInt &faces, typename HeightmapShapeDrawable< S >::Vec3Array &normals, typename HeightmapShapeDrawable< S >::Vector3 scale)
 
std::ostream & operator<< (std::ostream &str, const aiColor4D &c)
 
bool checkSpecularSanity (const aiColor4D &c)
 
void blendMaterialAlpha (::osg::Material *material, const float alpha)
 
bool shouldUseVisualAspectColor (const std::vector< Eigen::Vector3d > &points, const std::vector< Eigen::Vector4d, Eigen::aligned_allocator< Eigen::Vector4d >> &colors, dynamics::PointCloudShape::ColorMode colorMode)
 
::osg::ref_ptr< PointNodecreatePointNode (dynamics::PointCloudShape::PointShapeType pointShapeType, const Eigen::Vector3d &point, double size, const Eigen::Vector4d &color)
 
static Eigen::Vector3d normalFromVertex (const dart::dynamics::SoftBodyNode *bn, const Eigen::Vector3i &face, std::size_t v)
 
static void computeNormals (std::vector< Eigen::Vector3d > &normals, const dart::dynamics::SoftBodyNode *bn)
 

Function Documentation

◆ blendMaterialAlpha()

void dart::gui::osg::render::blendMaterialAlpha ( ::osg::Material *  material,
const float  alpha 
)

◆ checkSpecularSanity()

bool dart::gui::osg::render::checkSpecularSanity ( const aiColor4D &  c)

◆ computeNormals()

static void dart::gui::osg::render::computeNormals ( std::vector< Eigen::Vector3d > &  normals,
const dart::dynamics::SoftBodyNode bn 
)
static

◆ createPointNode()

::osg::ref_ptr<PointNode> dart::gui::osg::render::createPointNode ( dynamics::PointCloudShape::PointShapeType  pointShapeType,
const Eigen::Vector3d &  point,
double  size,
const Eigen::Vector4d &  color 
)

◆ getNormal() [1/3]

inline ::osg::Vec3d dart::gui::osg::render::getNormal ( const ::osg::Vec3d &  p1,
const ::osg::Vec3d &  p2,
const ::osg::Vec3d &  p3 
)

◆ getNormal() [2/3]

inline ::osg::Vec3f dart::gui::osg::render::getNormal ( const ::osg::Vec3f &  p1,
const ::osg::Vec3f &  p2,
const ::osg::Vec3f &  p3 
)

◆ getNormal() [3/3]

template<typename S >
Eigen::Matrix<S, 3, 1> dart::gui::osg::render::getNormal ( const Eigen::Matrix< S, 3, 1 > &  p1,
const Eigen::Matrix< S, 3, 1 > &  p2,
const Eigen::Matrix< S, 3, 1 > &  p3 
)

◆ normalFromVertex()

static Eigen::Vector3d dart::gui::osg::render::normalFromVertex ( const dart::dynamics::SoftBodyNode bn,
const Eigen::Vector3i &  face,
std::size_t  v 
)
static

◆ operator<<()

std::ostream& dart::gui::osg::render::operator<< ( std::ostream &  str,
const aiColor4D &  c 
)

◆ setVertices()

template<typename S >
void dart::gui::osg::render::setVertices ( const typename dynamics::HeightmapShape< S >::HeightField &  heightmap,
typename HeightmapShapeDrawable< S >::Vec3Array &  vertices,
::osg::DrawElementsUInt &  faces,
typename HeightmapShapeDrawable< S >::Vec3Array &  normals,
typename HeightmapShapeDrawable< S >::Vector3  scale 
)

◆ shouldUseVisualAspectColor()

bool dart::gui::osg::render::shouldUseVisualAspectColor ( const std::vector< Eigen::Vector3d > &  points,
const std::vector< Eigen::Vector4d, Eigen::aligned_allocator< Eigen::Vector4d >> &  colors,
dynamics::PointCloudShape::ColorMode  colorMode 
)

◆ smallestComponent()

double dart::gui::osg::render::smallestComponent ( const Eigen::Vector3d &  v)