Choreonoid  1.5
Public Member Functions | List of all members
cnoid::RectRegionMarker Class Reference

#include <RectRegionMarker.h>

Inheritance diagram for cnoid::RectRegionMarker:
cnoid::SgOverlay cnoid::SceneWidgetEditable cnoid::SgGroup cnoid::SgNode cnoid::SgObject cnoid::Referenced

Public Member Functions

 RectRegionMarker ()
 
 ~RectRegionMarker ()
 
void setRect (int x0, int y0, int x1, int y1)
 
void setEditModeCursor (QCursor cursor)
 
void startEditing (SceneWidget *sceneWidget)
 
bool isEditing () const
 
void finishEditing ()
 
const PolyhedralRegionregion () const
 
SignalProxy< void(const PolyhedralRegion &region)> sigRegionFixed ()
 
virtual void calcViewVolume (double viewportWidth, double viewportHeight, ViewVolume &io_volume)
 
virtual void onSceneModeChanged (const SceneWidgetEvent &event)
 
virtual bool onButtonPressEvent (const SceneWidgetEvent &event)
 
virtual bool onButtonReleaseEvent (const SceneWidgetEvent &event)
 
virtual bool onPointerMoveEvent (const SceneWidgetEvent &event)
 
virtual void onContextMenuRequest (const SceneWidgetEvent &event, MenuManager &menuManager)
 
SignalProxy< void(const SceneWidgetEvent &event, MenuManager &menuManager)> sigContextMenuRequest ()
 
- Public Member Functions inherited from cnoid::SgOverlay
 SgOverlay ()
 
 ~SgOverlay ()
 
virtual SgObjectclone (SgCloneMap &cloneMap) const
 
virtual void accept (SceneVisitor &visitor)
 
- Public Member Functions inherited from cnoid::SgGroup
 SgGroup ()
 
 SgGroup (const SgGroup &org)
 shallow copy More...
 
 SgGroup (const SgGroup &org, SgCloneMap &cloneMap)
 deep copy More...
 
 ~SgGroup ()
 
virtual int numChildObjects () const
 
virtual SgObjectchildObject (int index)
 
virtual void onUpdated (SgUpdate &update)
 
virtual const BoundingBoxboundingBox () const
 
virtual bool isGroup () const
 
void invalidateBoundingBox ()
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
iterator erase (iterator pos)
 
bool contains (SgNode *node) const
 
bool empty () const
 
int numChildren () const
 
SgNodechild (int index)
 
template<class NodeType >
NodeType * getChild (int index)
 This throws an exeption when the index is invalid or the type is not matched. More...
 
void clearChildren (bool doNotify=false)
 
void addChild (SgNode *node, bool doNotify=false)
 
bool addChildOnce (SgNode *node, bool doNotify=false)
 
void insertChild (SgNode *node, int index=0, bool doNotify=false)
 
bool removeChild (SgNode *node, bool doNotify=false)
 
void removeChildAt (int index, bool doNotify=false)
 
void copyChildrenTo (SgGroup *group, bool doNotify=false)
 
void moveChildrenTo (SgGroup *group, bool doNotify=false)
 
template<class NodeType >
NodeType * findNodeOfType ()
 
- Public Member Functions inherited from cnoid::SgNode
 SgNode ()
 
 SgNode (const SgNode &org)
 
 ~SgNode ()
 
SgNodecloneNode (SgCloneMap &cloneMap) const
 
- Public Member Functions inherited from cnoid::SgObject
const std::string & name () const
 
void setName (const std::string &name)
 
SignalProxy< void(const SgUpdate &update)> sigUpdated ()
 
void notifyUpdate (SgUpdate &update)
 
void notifyUpdate (int action=SgUpdate::MODIFIED)
 
void addParent (SgObject *parent, bool doNotify=false)
 
void removeParent (SgObject *parent)
 
int numParents () const
 
bool hasParents () const
 
const_parentIter parentBegin () const
 
const_parentIter parentEnd () const
 
SignalProxy< void(bool on)> sigGraphConnection ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 
- Public Member Functions inherited from cnoid::SceneWidgetEditable
virtual bool onKeyPressEvent (const SceneWidgetEvent &event)
 
virtual bool onKeyReleaseEvent (const SceneWidgetEvent &event)
 
virtual bool onDoubleClickEvent (const SceneWidgetEvent &event)
 
virtual void onPointerLeaveEvent (const SceneWidgetEvent &event)
 
virtual bool onScrollEvent (const SceneWidgetEvent &event)
 
virtual void onFocusChanged (const SceneWidgetEvent &event, bool on)
 
virtual bool onUndoRequest ()
 
virtual bool onRedoRequest ()
 

Additional Inherited Members

- Public Types inherited from cnoid::SgGroup
typedef Container::iterator iterator
 
typedef Container::reverse_iterator reverse_iterator
 
typedef Container::const_iterator const_iterator
 
typedef Container::const_reverse_iterator const_reverse_iterator
 
- Public Types inherited from cnoid::SgObject
typedef std::set< SgObject * > ParentContainer
 
typedef ParentContainer::iterator parentIter
 
typedef ParentContainer::const_iterator const_parentIter
 
- Protected Member Functions inherited from cnoid::SgOverlay
 SgOverlay (const SgOverlay &org, SgCloneMap &cloneMap)
 
- Protected Member Functions inherited from cnoid::SgObject
 SgObject ()
 
 SgObject (const SgObject &org)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 
- Protected Attributes inherited from cnoid::SgGroup
BoundingBox bboxCache
 
bool isBboxCacheValid
 

Constructor & Destructor Documentation

RectRegionMarker::RectRegionMarker ( )
RectRegionMarker::~RectRegionMarker ( )

Member Function Documentation

void RectRegionMarker::calcViewVolume ( double  viewportWidth,
double  viewportHeight,
ViewVolume io_volume 
)
virtual

Reimplemented from cnoid::SgOverlay.

void RectRegionMarker::finishEditing ( )
bool RectRegionMarker::isEditing ( ) const
bool RectRegionMarker::onButtonPressEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

bool RectRegionMarker::onButtonReleaseEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

void RectRegionMarker::onContextMenuRequest ( const SceneWidgetEvent event,
MenuManager menuManager 
)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

bool RectRegionMarker::onPointerMoveEvent ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

void RectRegionMarker::onSceneModeChanged ( const SceneWidgetEvent event)
virtual

Reimplemented from cnoid::SceneWidgetEditable.

const PolyhedralRegion & RectRegionMarker::region ( ) const
void RectRegionMarker::setEditModeCursor ( QCursor  cursor)
void RectRegionMarker::setRect ( int  x0,
int  y0,
int  x1,
int  y1 
)
SignalProxy< void(const SceneWidgetEvent &event, MenuManager &menuManager)> RectRegionMarker::sigContextMenuRequest ( )
SignalProxy< void(const PolyhedralRegion &region)> RectRegionMarker::sigRegionFixed ( )
void RectRegionMarker::startEditing ( SceneWidget sceneWidget)

The documentation for this class was generated from the following files: