SoView2DRectangle Class Reference

allows drawing and editing of a rectangle on a SoView2D More...

#include <SoView2DRectangle.h>

Inheritance diagram for SoView2DRectangle:

SoView2DExtension

List of all members.

Public Member Functions

 SoView2DRectangle ()
 Constructor.
void draw (View2DSliceList *dsl, View2DSlice *dslice, int slice)
 reimplemented from SoView2DExtension
bool evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase)
 reimplemented from SoView2DExtension
bool ignoreEvent (View2DEvent *ec)
 Overwrite ignoreEvent -> ignore the "ignoreHandledEvents"-Field.

Static Public Member Functions

static void initClass ()
 inventor runtime type system

Public Attributes

SoSFVec3f startWorldPos
 start world position of rectangle
SoSFVec3f endWorldPos
 end world position of rectangle
SoSFFloat blendInside
 blend factor inside of rectangle
SoSFFloat blendOnto
 blend factor on border of rectangle
SoSFFloat blendOutside
 blend factor outside of rectangle
SoSFFloat lineBlendInside
 line blend factor when inside of rectangle
SoSFFloat lineBlendOnto
 line blend factor when on border of rectangle
SoSFFloat lineBlendOutside
 line blend factor when outside of rectangle
SoSFBool resetToImage
 reset to 80 percent of the original image
SoSFBool selectOutside
 allow selection outside of rectangle
SoSFBool allowDrag
 allow dragging of the rectangle
SoSFBool cooperative
 enable cooperative mode
SoSFFloat shadeExterior
 shade the exterior of the rectangle

Protected Attributes

bool _endPointEditing
 end point is being edited (after startPoint is set)
bool _anyPointDrag
 dragging any point
bool _xhigher
 internal flag
bool _yhigher
 internal flag
bool _dragx
 flag if x is dragged
bool _dragy
 flag if y is dragged
bool _rectDrag
 dragging the rect
SbVec3f _lastWorldPos
 last world position
bool _draggingInCooperativeMode
 to remember in cooperative mode, if the rectangle is currently selected and edited


Detailed Description

allows drawing and editing of a rectangle on a SoView2D

Definition at line 24 of file SoView2DRectangle.h.


Constructor & Destructor Documentation

SoView2DRectangle::SoView2DRectangle (  ) 

Constructor.


Member Function Documentation

void SoView2DRectangle::draw ( View2DSliceList dsl,
View2DSlice dslice,
int  slice 
) [virtual]

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

bool SoView2DRectangle::evalEvent ( SoView2D view2d,
View2DSliceList slicelist,
View2DEvent ec,
View2DEventPhase  phase 
) [virtual]

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

bool SoView2DRectangle::ignoreEvent ( View2DEvent ec  )  [virtual]

Overwrite ignoreEvent -> ignore the "ignoreHandledEvents"-Field.

Reimplemented from SoView2DExtension.

static void SoView2DRectangle::initClass (  )  [static]

inventor runtime type system

Reimplemented from SoView2DExtension.


Member Data Documentation

dragging any point

Definition at line 87 of file SoView2DRectangle.h.

to remember in cooperative mode, if the rectangle is currently selected and edited

Definition at line 106 of file SoView2DRectangle.h.

bool SoView2DRectangle::_dragx [protected]

flag if x is dragged

Definition at line 95 of file SoView2DRectangle.h.

bool SoView2DRectangle::_dragy [protected]

flag if y is dragged

Definition at line 97 of file SoView2DRectangle.h.

end point is being edited (after startPoint is set)

Definition at line 84 of file SoView2DRectangle.h.

SbVec3f SoView2DRectangle::_lastWorldPos [protected]

last world position

Definition at line 103 of file SoView2DRectangle.h.

bool SoView2DRectangle::_rectDrag [protected]

dragging the rect

Definition at line 100 of file SoView2DRectangle.h.

bool SoView2DRectangle::_xhigher [protected]

internal flag

Definition at line 90 of file SoView2DRectangle.h.

bool SoView2DRectangle::_yhigher [protected]

internal flag

Definition at line 92 of file SoView2DRectangle.h.

allow dragging of the rectangle

Definition at line 57 of file SoView2DRectangle.h.

blend factor inside of rectangle

Definition at line 38 of file SoView2DRectangle.h.

blend factor on border of rectangle

Definition at line 40 of file SoView2DRectangle.h.

blend factor outside of rectangle

Definition at line 42 of file SoView2DRectangle.h.

enable cooperative mode

Definition at line 60 of file SoView2DRectangle.h.

end world position of rectangle

Definition at line 35 of file SoView2DRectangle.h.

line blend factor when inside of rectangle

Definition at line 44 of file SoView2DRectangle.h.

line blend factor when on border of rectangle

Definition at line 46 of file SoView2DRectangle.h.

line blend factor when outside of rectangle

Definition at line 48 of file SoView2DRectangle.h.

reset to 80 percent of the original image

Definition at line 51 of file SoView2DRectangle.h.

allow selection outside of rectangle

Definition at line 54 of file SoView2DRectangle.h.

shade the exterior of the rectangle

Definition at line 63 of file SoView2DRectangle.h.

start world position of rectangle

Definition at line 33 of file SoView2DRectangle.h.


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

Generated on Sat Sep 3 18:39:33 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8