SoView2DPlane Class Reference

#include <SoView2DPlane.h>

Inheritance diagram for SoView2DPlane:

SoView2DExtension

List of all members.

Public Member Functions

 SoView2DPlane ()
 Constructor.
virtual void draw (View2DSliceList *dsl, View2DSlice *dslice, int slice)
 reimplemented from SoView2DExtension
bool evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase)
 reimplemented from SoView2DExtension
void setExternalRotationAxis (SbVec3f rotPosition)

Static Public Member Functions

static void initClass ()
 inventor runtime type system

Public Attributes

SoSFPlane plane
 plane to be drawn
SoSFEnum interactionMode
 interaction mode plane can be rotated or translated or both
SoSFBool maskValidAndHit
 gives the state of the mask, which calculated by the current mousebuttons and modifier key compared to the button1,button2,button3,ctrl,shift,alt settings.
SoSFFloat blendMin
 minimum blend value
SoSFFloat blendMax
 maximum blend value
SoSFBool normalOn
 draw normal
SoSFBool externalRotationAxisOn
 set external rotation axis
SoSFVec3f externalRotationAxis
 external rotation axis position
SoSFInt32 normalSize
 size of normal to be drawn (in pixels)
SoSFFloat normalOffset
 offset of the normal from the plane
SoSFMatrix rotationDifference
 Rotation between previous and current orientation.
SoSFFloat translationLineFraction
 Fraction of the visible line that is associated with translation (percent).
SoSFBool useTranslationRange
 use translation range for plane parameter d
SoSFFloat translationRangeMin
 minimum value for plane parameter d
SoSFFloat translationRangeMax
 maximum value for plane parameter d
SoSFBool fixedLineWidth
 use translation range for plane parameter d

Protected Types

enum  HIT_MODE { NO_HIT = 0, HIT_LINE = 1, HIT_MIDDLE = 3 }
 describes if we hit the line and how More...

Protected Member Functions

void clipLinePoint (float &p1x, float &p1y, float p2x, float p2y, float x0, float x1)
 clip a line and a point in 2D, returns new point in p1x,p1y
void drawNormal (View2DSliceList *dsl, View2DSlice *dslice, SbVec2f p1, SbVec2f p2)
 draw a normal on the slice
HIT_MODE _hitPlane (const SbVec3f &point, View2DSliceList *dsl)
 is mouse curson on plane?


Detailed Description

Definition at line 35 of file SoView2DPlane.h.


Member Enumeration Documentation

enum SoView2DPlane::HIT_MODE [protected]

describes if we hit the line and how

Enumerator:
NO_HIT 
HIT_LINE 
HIT_MIDDLE 

Definition at line 106 of file SoView2DPlane.h.


Constructor & Destructor Documentation

SoView2DPlane::SoView2DPlane (  ) 

Constructor.


Member Function Documentation

HIT_MODE SoView2DPlane::_hitPlane ( const SbVec3f &  point,
View2DSliceList dsl 
) [protected]

is mouse curson on plane?

void SoView2DPlane::clipLinePoint ( float &  p1x,
float &  p1y,
float  p2x,
float  p2y,
float  x0,
float  x1 
) [protected]

clip a line and a point in 2D, returns new point in p1x,p1y

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

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

void SoView2DPlane::drawNormal ( View2DSliceList dsl,
View2DSlice dslice,
SbVec2f  p1,
SbVec2f  p2 
) [protected]

draw a normal on the slice

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

reimplemented from SoView2DExtension

Reimplemented from SoView2DExtension.

static void SoView2DPlane::initClass (  )  [static]

inventor runtime type system

Reimplemented from SoView2DExtension.

void SoView2DPlane::setExternalRotationAxis ( SbVec3f  rotPosition  )  [inline]

Definition at line 95 of file SoView2DPlane.h.


Member Data Documentation

maximum blend value

Definition at line 57 of file SoView2DPlane.h.

minimum blend value

Definition at line 55 of file SoView2DPlane.h.

external rotation axis position

Definition at line 63 of file SoView2DPlane.h.

set external rotation axis

Definition at line 61 of file SoView2DPlane.h.

use translation range for plane parameter d

Definition at line 79 of file SoView2DPlane.h.

interaction mode plane can be rotated or translated or both

Definition at line 48 of file SoView2DPlane.h.

gives the state of the mask, which calculated by the current mousebuttons and modifier key compared to the button1,button2,button3,ctrl,shift,alt settings.

Moreover the plane must be hit.

Definition at line 52 of file SoView2DPlane.h.

offset of the normal from the plane

Definition at line 67 of file SoView2DPlane.h.

draw normal

Definition at line 59 of file SoView2DPlane.h.

size of normal to be drawn (in pixels)

Definition at line 65 of file SoView2DPlane.h.

plane to be drawn

Definition at line 43 of file SoView2DPlane.h.

Rotation between previous and current orientation.

Definition at line 69 of file SoView2DPlane.h.

Fraction of the visible line that is associated with translation (percent).

Definition at line 71 of file SoView2DPlane.h.

maximum value for plane parameter d

Definition at line 77 of file SoView2DPlane.h.

minimum value for plane parameter d

Definition at line 75 of file SoView2DPlane.h.

use translation range for plane parameter d

Definition at line 73 of file SoView2DPlane.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