DART  6.10.1
dart::gui::osg Namespace Reference

Namespaces

 render
 
 sfs_dnd
 

Classes

struct  PickInfo
 
class  DefaultEventHandler
 
class  InteractiveFrameMouseEvent
 
class  InteractiveToolDnD
 
class  DragAndDrop
 DragAndDrop is a class that facilitates enabling various kinds of dart Entities to be dragged and dropped in an dart::gui::osg environment. More...
 
class  SimpleFrameDnD
 SimpleFrameDnD is a DragAndDrop implementation for SimpleFrame objects. More...
 
class  SimpleFrameShapeDnD
 SimpleFrameShapeDnD is a version of SimpleFrameDnD that allows a specific Shape within the SimpleFrame to be dragged and dropped (although it will carry the entire SimpleFrame with it) More...
 
class  InteractiveFrameDnD
 
class  BodyNodeDnD
 
class  GridVisual
 Attach this to a Viewer in order to visualize grid. More...
 
struct  ImGuiNewFrameCallback
 
struct  ImGuiDrawCallback
 
class  ImGuiHandler
 
class  ImGuiViewer
 
class  ImGuiWidget
 
class  AboutWidget
 
class  InteractiveTool
 
class  InteractiveFrame
 
class  MouseEventHandler
 
class  RealTimeWorldNode
 
class  ShapeFrameNode
 
class  SupportPolygonVisual
 Attach this to a Viewer in order to visualize the support polygon of a Skeleton. More...
 
class  TrackballManipulator
 
class  SaveScreen
 
class  ViewerAttachmentCallback
 
class  ViewerAttachment
 
class  Viewer
 
class  WorldNodeCallback
 
class  WorldNode
 WorldNode class encapsulates a World to be displayed in OpenSceneGraph. More...
 

Typedefs

typedef std::shared_ptr< InteractiveFrameInteractiveFramePtr
 

Enumerations

enum  MouseButton { LEFT_MOUSE = 0 , RIGHT_MOUSE , MIDDLE_MOUSE , NUM_MOUSE_BUTTONS }
 
enum  MouseButtonEvent { BUTTON_PUSH = 0 , BUTTON_DRAG , BUTTON_RELEASE , BUTTON_NOTHING }
 
enum  ConstraintType {
  UNCONSTRAINED = 0 , LINE_CONSTRAINT , PLANE_CONSTRAINT , CUSTOM_CONSTRAINT ,
  NUM_CONSTRAINT_TYPES
}
 
enum  ConvertedKey : int {
  ConvertedKey_Tab = 257 , ConvertedKey_Left , ConvertedKey_Right , ConvertedKey_Up ,
  ConvertedKey_Down , ConvertedKey_PageUp , ConvertedKey_PageDown , ConvertedKey_Home ,
  ConvertedKey_End , ConvertedKey_Delete , ConvertedKey_BackSpace , ConvertedKey_Enter ,
  ConvertedKey_Escape , ConvertedKey_LeftControl , ConvertedKey_RightControl , ConvertedKey_LeftShift ,
  ConvertedKey_RightShift , ConvertedKey_LeftAlt , ConvertedKey_RightAlt , ConvertedKey_LeftSuper ,
  ConvertedKey_RightSuper
}
 

Functions

static bool wasActive (MouseButtonEvent event)
 
static void assignEventToButtons (MouseButtonEvent(&mLastButtonEvent)[NUM_MOUSE_BUTTONS], const ::osgGA::GUIEventAdapter &ea)
 
::osg::Vec3 toVec3 (const Eigen::Vector3d &point)
 
void setVertices (::osg::Vec3Array *axisLineVertices, ::osg::Vec3Array *majorLineVertices, ::osg::Vec3Array *minorLineVertices, std::size_t numCells, std::size_t numMinorLinesPerMajorLine, float stepSize, GridVisual::PlaneType planeType, const Eigen::Vector3d &offset)
 
int convertFromOSGKey (int key)
 
static void warnAboutUnsuccessfulCast (const std::string &shapeType, const std::string &entityName)
 
static sfs_dnd::iterator getSimpleFrameShapeDnDFromMultimap (dart::dynamics::SimpleFrame *_frame, dart::dynamics::Shape *_shape, std::multimap< dart::dynamics::Shape *, SimpleFrameShapeDnD * > &map)
 

Typedef Documentation

◆ InteractiveFramePtr

Enumeration Type Documentation

◆ ConstraintType

Enumerator
UNCONSTRAINED 
LINE_CONSTRAINT 
PLANE_CONSTRAINT 
CUSTOM_CONSTRAINT 
NUM_CONSTRAINT_TYPES 

◆ ConvertedKey

Enumerator
ConvertedKey_Tab 
ConvertedKey_Left 
ConvertedKey_Right 
ConvertedKey_Up 
ConvertedKey_Down 
ConvertedKey_PageUp 
ConvertedKey_PageDown 
ConvertedKey_Home 
ConvertedKey_End 
ConvertedKey_Delete 
ConvertedKey_BackSpace 
ConvertedKey_Enter 
ConvertedKey_Escape 
ConvertedKey_LeftControl 
ConvertedKey_RightControl 
ConvertedKey_LeftShift 
ConvertedKey_RightShift 
ConvertedKey_LeftAlt 
ConvertedKey_RightAlt 
ConvertedKey_LeftSuper 
ConvertedKey_RightSuper 

◆ MouseButton

Enumerator
LEFT_MOUSE 
RIGHT_MOUSE 
MIDDLE_MOUSE 
NUM_MOUSE_BUTTONS 

◆ MouseButtonEvent

Enumerator
BUTTON_PUSH 
BUTTON_DRAG 
BUTTON_RELEASE 
BUTTON_NOTHING 

Function Documentation

◆ assignEventToButtons()

static void dart::gui::osg::assignEventToButtons ( MouseButtonEvent(&)  mLastButtonEvent[NUM_MOUSE_BUTTONS],
const ::osgGA::GUIEventAdapter &  ea 
)
static

◆ convertFromOSGKey()

int dart::gui::osg::convertFromOSGKey ( int  key)

◆ getSimpleFrameShapeDnDFromMultimap()

static sfs_dnd::iterator dart::gui::osg::getSimpleFrameShapeDnDFromMultimap ( dart::dynamics::SimpleFrame _frame,
dart::dynamics::Shape _shape,
std::multimap< dart::dynamics::Shape *, SimpleFrameShapeDnD * > &  map 
)
static

◆ setVertices()

void dart::gui::osg::setVertices ( ::osg::Vec3Array *  axisLineVertices,
::osg::Vec3Array *  majorLineVertices,
::osg::Vec3Array *  minorLineVertices,
std::size_t  numCells,
std::size_t  numMinorLinesPerMajorLine,
float  stepSize,
GridVisual::PlaneType  planeType,
const Eigen::Vector3d &  offset 
)

◆ toVec3()

::osg::Vec3 dart::gui::osg::toVec3 ( const Eigen::Vector3d &  point)

◆ warnAboutUnsuccessfulCast()

static void dart::gui::osg::warnAboutUnsuccessfulCast ( const std::string &  shapeType,
const std::string &  entityName 
)
static

◆ wasActive()

static bool dart::gui::osg::wasActive ( MouseButtonEvent  event)
static