Editor for sphere objects. Will also create the visualizers (and manage) for the editing.
More...
Public Member Functions |
| | DtSphereEditor (makVrv::DtDe &) |
| | CTOR.
|
| virtual | ~DtSphereEditor () |
| | virtual DTOR
|
| virtual const std::string & | className () |
| | Returns the name of the processor class, to be used for identifying an event processor.
|
| virtual const DtVector & | location () const |
| | Location is set/returned in local database coordinates.
|
| virtual void | setRadius (double, bool reset=true) |
| | Radius is set in meters.
|
| virtual double | radius () const |
| virtual void | setLocation (const DtVector &, double) |
| virtual void | setPlaced (bool) |
| | When this is true, will disconnect from signal_setLocation method.
|
| bool | placed () const |
| virtual void | setRadiusRange (double bottom, double top) |
| virtual void | getRadiusRange (double &bottom, double &top) const |
| virtual bool | blockSignals (bool) |
| | Returns current status.
|
| bool | signalsBlocked () const |
| | DtVrfObjectManipulationEventProcessor (makVrv::DtDe &, const std::string &driverName="DtVrfObjectManipulationEventProcessor") |
| | CTOR.
|
| virtual | ~DtVrfObjectManipulationEventProcessor () |
| | virtual DTOR
|
| virtual void | setCurrentHeading (double heading) |
| | new objects start with an intial heading of 0.
|
| virtual void | setHeadingAllowed (bool) |
| | Sets whether or not heading changes are allowed. Default is false.
|
| virtual bool | headingAllowed () const |
| virtual void | setAltitudeAllowed (bool) |
| | Sets whether or not altitude changes are allowed. Default is false.
|
| virtual bool | altitudeAllowed () const |
| virtual double | currentHeading () const |
| | get the current heading. Initial heading plus changes due the shift-dragging
|
| virtual void | setEnabled (bool) |
| | If not enabled will not process mouse events, but rather ignore and pass to the next handler.
|
| virtual void | setEditing (bool) |
| | Set to true if in edit mode.
|
| virtual void | setCreating (bool) |
| | Set to be creating.
|
| virtual void | setIgnoreNextLeftButtonRelease (bool b) |
| | Set to ignore the next left button release.
|
| virtual void | setEditStartedByDoubleClick (bool b) |
| virtual void | setDragTolerance (int) |
| | Set as the minimum distance the mouse needs to move to consider it to be a terrain drag from the mouse down location.
|
| virtual int | dragTolerance () const |
| virtual void | setFreehand (bool) |
| | Sets freehand mode.
|
| virtual bool | freehand () const |
| void | setDragToleranceTime (double) |
| | Along with move tolerance, the amount of time the mouse has to be pressed before initiating a terrain drag.
|
| double | dragToleranceTime () const |
| virtual void | setIgnoreList (const std::vector< makVrv::DtElementID > &) |
| | sets the list with which to ignore items when doing intersections
|
const std::vector
< makVrv::DtElementID > & | ignoreList () const |
| virtual void | setEmbarkationAllowed (bool) |
| | Sets whether or not the processor will allow the picking of all nodes to allow for items to be embarked on other objects.
|
| virtual bool | embarkationAllowed () const |
| virtual bool | isShiftKeyDown () const |
| | Asks gui event processor to return state of these keys.
|
| virtual bool | isControlKeyDown () const |
| virtual bool | isAltKeyDown () const |
| | DtBasicEditingEventProcessor (DtInputDriver &inputDriver, DtDe &de, const std::string &className) |
| | DTOR This class is created by the DtSimpleManager.
|
| virtual | ~DtBasicEditingEventProcessor () |
| | CTOR.
|
| double | currentAltitude () const |
| void | setCurrentAltitude (double) |
| void | setCurrentGroundLocation (const DtVector &) |
| virtual bool | dragging () const |
| | Returns true if currently in dragging mode.
|
| virtual void | setAllowDragDrop (bool) |
| | If true (default false) will send out signals when a drag/drop would start (based on tolerance for left mouse down and mouse move).
|
| bool | allowDragDrop () const |
| bool | creating () const |
| virtual bool | allowEdit (const DtSelectionManager::IdSet &, bool doubleClick) const |
| | Return true if the items can be edited (by double click if flag is true). Default is false.
|
| virtual bool | allowContinueDrag (const DtVector &) const |
| | Return true if can still drag object (if in drag mode).
|
| double | mouseX () const |
| | Mouse X and Y positions as recorded the last time through the processEvent.
|
| double | mouseY () const |
| | DtEventProcessorInterface () |
| | CTOR.
|
| virtual | ~DtEventProcessorInterface () |
| | DTOR.
|
| virtual bool | processPinchGesture (const DtPinchGesture &ev, DtChannel &channel) |
| | Don't require a handler for pinch gestures, but make them available.
|
| bool | enabled () const |
Protected Member Functions |
| virtual void | modifyRadius (int steps) |
| virtual double | multiplierForRadius (double change) const |
| virtual void | create2DSphere (int modelSet) |
| virtual void | create3DSphere (int modelSet) |
| virtual void | placed (makVrv::DtUniqueID, const DtVector &, double) |
| virtual void | changeHeading (double mouseX, double mouseY) |
| | do the work on shift-drag
|
| virtual void | changeHeadingWithWheel (int wheelSteps) |
| | change heading with shift-mousewheel
|
| virtual void | cancel () |
| | Call to cancel current operation.
|
| virtual void | altitudeChanged (const DtVector &, double altitude) |
| virtual void | cleanup () |
virtual
makVrv::DtIntersector::IntersectProperties | intersectorPickMask () const |
| | Mask to use when picking into the scene.
|
| virtual bool | processMouseEvent (const makVrv::DtMouseEvent &ev, makVrv::DtChannel &channel) |
| | process mouse events
|
| virtual bool | processKeyboardEvent (const makVrv::DtKeyEvent &ev, makVrv::DtChannel &channel) |
| | Processes a keyboard event on the channel.
|
| virtual void | changeAltitude (double mouseX, double mouseY) |
| | do the work on alt-drag
|
| virtual bool | pick (makVrv::DtChannel &channel, double x, double y, makVrv::DtIntersectorResult &result, makVrv::DtIntersector::IntersectProperties props) const |
| | Call intersector to pick into scene to get terrain intersection.
|
| virtual void | cleanupTerrainDraggingVaraibles () |
| virtual bool | placePoint (makVrv::DtChannel &channel, const makVrv::DtMouseEvent &) |
| | If creating or dragging signal to place the point and return true, else return false.
|
| virtual void | changeAltitudeWithWheel (int wheelSteps) |
| | change altitude with alt-mousewheel
|
| virtual void | cancel (bool escPressed) |
| virtual void | startHeadingDrag (const makVrv::DtMouseEvent &, makVrv::DtChannel &channel) |
| virtual void | startAltitudeDrag (const makVrv::DtMouseEvent &, makVrv::DtChannel &channel) |
| virtual void | tick () |
| virtual void | executeDeferredMouseMoveEvent () |
| virtual void | processMouseMove (DtChannel &channel, const DtMouseEvent &ev) |
Editor for sphere objects. Will also create the visualizers (and manage) for the editing.