#include <SoView2DPlane.h>

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? | |
Definition at line 35 of file SoView2DPlane.h.
enum SoView2DPlane::HIT_MODE [protected] |
| SoView2DPlane::SoView2DPlane | ( | ) |
Constructor.
| 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] |
| 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] |
| static void SoView2DPlane::initClass | ( | ) | [static] |
| void SoView2DPlane::setExternalRotationAxis | ( | SbVec3f | rotPosition | ) | [inline] |
Definition at line 95 of file SoView2DPlane.h.
| SoSFFloat SoView2DPlane::blendMax |
| SoSFFloat SoView2DPlane::blendMin |
| SoSFVec3f SoView2DPlane::externalRotationAxis |
| SoSFBool SoView2DPlane::fixedLineWidth |
| SoSFEnum SoView2DPlane::interactionMode |
interaction mode plane can be rotated or translated or both
Definition at line 48 of file SoView2DPlane.h.
| SoSFBool SoView2DPlane::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.
Moreover the plane must be hit.
Definition at line 52 of file SoView2DPlane.h.
| SoSFFloat SoView2DPlane::normalOffset |
| SoSFBool SoView2DPlane::normalOn |
| SoSFInt32 SoView2DPlane::normalSize |
| SoSFPlane SoView2DPlane::plane |
| SoSFMatrix SoView2DPlane::rotationDifference |
| SoSFFloat SoView2DPlane::translationLineFraction |
Fraction of the visible line that is associated with translation (percent).
Definition at line 71 of file SoView2DPlane.h.
| SoSFFloat SoView2DPlane::translationRangeMax |
| SoSFFloat SoView2DPlane::translationRangeMin |
| SoSFBool SoView2DPlane::useTranslationRange |
1.5.8