MeVisLabToolboxReference
|
Extension for modifying an existing CSO. More...
#include <SoCSOModifyEditor.h>
Classes | |
struct | CSOTrailIntersection |
Struct holding the cso/trail point index and the computed intersection point. | |
Public Member Functions | |
SoCSOModifyEditor () | |
Standard constructor. | |
virtual void | createStartPressAt (const SoPointerPosition &pos) |
virtual void | createDragMoveTo (const SoPointerPosition &pos) |
virtual bool | createEndPress (int clickCount) |
virtual bool | isCreationAllowed () const |
Returns whether the editor is allowed to create a new CSO. | |
virtual void | draw (const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &sliceInfo, SoView2DCSOExtensibleEditor *editor) |
General drawing routine. | |
virtual bool | canCreateCSOs () const |
Returns whether the editor can create a CSO. | |
virtual bool | shouldRenderSpecific (ml::CSO *) const |
Does not render specific CSOs but only its own temporary trail. | |
virtual bool | shouldRenderGeneral (ml::CSO *) const |
Returns true so we can use the general render code. | |
virtual void | selectAndMoveStartPressAt (const SoPointerPosition &) |
virtual void | selectAndMoveDragMoveTo (const SoPointerPosition &) |
virtual SoPointingAction * | selectAndMoveEndPress (int) |
virtual int | cursorShape () const |
Returns the cursor shape that indicates the next creation. | |
virtual bool | evaluateHitPoint (const ml::Vector3 &, View2DSliceList *, ml::CSOList *, const ml::CSOBoundingBox &, SoView2DCSOExtensibleEditor *, ml::CSO *&, ml::CSOSeedPoint *&, ml::CSOPathPoints *&, float &) |
a modification interaction can start anywhere, so overload this and always return 'false'. | |
Static Public Member Functions | |
static void | initClass () |
init class in inventor runtime | |
Public Attributes | |
SoSFTrigger | notifyTrailIsSelfIntersecting |
Button is triggered from the inside if the modification trail is intersecting itself. | |
SoSFTrigger | notifyRejectModification |
Button is triggered from the inside if the modification has been rejected because it would have caused a change of topology. | |
SoSFBool | shouldCheckCSOForSelfIntersection |
If checked, the module tests a candidate CSO whether it is self-intersection before attempting to modify it. | |
SoSFColor | selfIntersectionColor |
Color for the trail in case it intersects itself. | |
SoSFBool | shouldSetModifiedCSOSelected |
If checked, the modified CSO gets selected, otherwise the selection remains unchanged. |
Extension for modifying an existing CSO.
Definition at line 20 of file SoCSOModifyEditor.h.
SoCSOModifyEditor::SoCSOModifyEditor | ( | ) |
Standard constructor.
virtual bool SoCSOModifyEditor::canCreateCSOs | ( | ) | const [inline, virtual] |
Returns whether the editor can create a CSO.
Reimplemented from SoCSOEditorExtension.
Definition at line 56 of file SoCSOModifyEditor.h.
virtual void SoCSOModifyEditor::createDragMoveTo | ( | const SoPointerPosition & | pos | ) | [virtual] |
Implements SoCSOEditorExtension.
virtual bool SoCSOModifyEditor::createEndPress | ( | int | clickCount | ) | [virtual] |
Implements SoCSOEditorExtension.
virtual void SoCSOModifyEditor::createStartPressAt | ( | const SoPointerPosition & | pos | ) | [virtual] |
Implements SoCSOEditorExtension.
virtual int SoCSOModifyEditor::cursorShape | ( | ) | const [inline, virtual] |
Returns the cursor shape that indicates the next creation.
Reimplemented from SoCSOEditorExtension.
Definition at line 67 of file SoCSOModifyEditor.h.
References SoViewerProxy::CROSS_FREEFORM_CURSOR.
virtual void SoCSOModifyEditor::draw | ( | const CSODrawCSOInfos & | csoInfos, |
const CSODrawView2DInfos & | view2DInfos, | ||
const CSODrawSliceInformation & | sliceInfo, | ||
SoView2DCSOExtensibleEditor * | editor | ||
) | [virtual] |
General drawing routine.
Reimplemented from SoCSOEditorExtension.
virtual bool SoCSOModifyEditor::evaluateHitPoint | ( | const ml::Vector3 & | , |
View2DSliceList * | , | ||
ml::CSOList * | , | ||
const ml::CSOBoundingBox & | , | ||
SoView2DCSOExtensibleEditor * | , | ||
ml::CSO *& | , | ||
ml::CSOSeedPoint *& | , | ||
ml::CSOPathPoints *& | , | ||
float & | |||
) | [inline, virtual] |
a modification interaction can start anywhere, so overload this and always return 'false'.
Reimplemented from SoCSOEditorExtension.
Definition at line 71 of file SoCSOModifyEditor.h.
static void SoCSOModifyEditor::initClass | ( | ) | [static] |
init class in inventor runtime
Reimplemented from SoCSOEditorExtension.
virtual bool SoCSOModifyEditor::isCreationAllowed | ( | ) | const [virtual] |
Returns whether the editor is allowed to create a new CSO.
Reimplemented from SoCSOEditorExtension.
virtual void SoCSOModifyEditor::selectAndMoveDragMoveTo | ( | const SoPointerPosition & | ) | [inline, virtual] |
Implements SoCSOEditorExtension.
Definition at line 64 of file SoCSOModifyEditor.h.
virtual SoPointingAction* SoCSOModifyEditor::selectAndMoveEndPress | ( | int | ) | [inline, virtual] |
Implements SoCSOEditorExtension.
Definition at line 65 of file SoCSOModifyEditor.h.
virtual void SoCSOModifyEditor::selectAndMoveStartPressAt | ( | const SoPointerPosition & | ) | [inline, virtual] |
Implements SoCSOEditorExtension.
Definition at line 63 of file SoCSOModifyEditor.h.
virtual bool SoCSOModifyEditor::shouldRenderGeneral | ( | ml::CSO * | ) | const [inline, virtual] |
Returns true so we can use the general render code.
Reimplemented from SoCSOEditorExtension.
Definition at line 60 of file SoCSOModifyEditor.h.
virtual bool SoCSOModifyEditor::shouldRenderSpecific | ( | ml::CSO * | ) | const [inline, virtual] |
Does not render specific CSOs but only its own temporary trail.
Reimplemented from SoCSOEditorExtension.
Definition at line 58 of file SoCSOModifyEditor.h.
SoSFTrigger SoCSOModifyEditor::notifyRejectModification |
Button is triggered from the inside if the modification has been rejected because it would have caused a change of topology.
Definition at line 35 of file SoCSOModifyEditor.h.
SoSFTrigger SoCSOModifyEditor::notifyTrailIsSelfIntersecting |
Button is triggered from the inside if the modification trail is intersecting itself.
An application can use this to warn the user that the trail is being discarded because of the self-intersection.
Definition at line 32 of file SoCSOModifyEditor.h.
SoSFColor SoCSOModifyEditor::selfIntersectionColor |
Color for the trail in case it intersects itself.
Definition at line 40 of file SoCSOModifyEditor.h.
If checked, the module tests a candidate CSO whether it is self-intersection before attempting to modify it.
Definition at line 38 of file SoCSOModifyEditor.h.
If checked, the modified CSO gets selected, otherwise the selection remains unchanged.
Definition at line 43 of file SoCSOModifyEditor.h.