MeVisLab Toolbox Reference
|
Extension for rendering CSOs in their cross-section. More...
#include <SoCSOCrossSectionRenderer.h>
Classes | |
struct | CrossingPoint |
Static Public Member Functions | |
static void | initClass () |
init class in inventor runtime | |
Static Public Member Functions inherited from SoCSOGeneralRendererEditorExtension | |
static void | initClass () |
init class in inventor runtime | |
Static Public Member Functions inherited from SoCSOEditorExtension | |
static void | initClass () |
init class in inventor runtime | |
Additional Inherited Members | |
Protected Member Functions inherited from SoCSOGeneralRendererEditorExtension | |
SoCSOGeneralRendererEditorExtension () | |
Hidden constructor. | |
bool | shouldShowCSO (ml::CSO *cso, const CSODrawView2DInfos &view2DInfos, SoView2DCSOExtensibleEditor *editor) |
void | glSetColor (ml::CSO *cso) |
Protected Member Functions inherited from SoCSOEditorExtension | |
SoCSOEditorExtension () | |
Hidden constructor. | |
~SoCSOEditorExtension () override | |
Hidden destructor. | |
virtual void | initMembers () |
void | sendCSONotificationRepaint () |
Sends a CSO notification to repaint the CSOList. | |
void | sendCSONotificationMove () |
Sends a CSO notification on moving a CSO or seed point. | |
void | sendCSONotificationFinishInteraction () |
Sends a CSO notification on finishing an interaction with a CSO. | |
void | sendCSONotificationResetInteractionState () |
Sends a CSO notification on having the interaction state being reset. | |
void | sendCSONotificationInsertSeedPoint () |
Sends a CSO notification on inserting a seed point. | |
void | sendCSONotificationNewCSOStarted () |
Sends a CSO notification on having started to create a new CSO. | |
void | setExtensionIdAsSubType () |
Sets the subtype member to the value of the extension id string. | |
virtual void | setCreationData (const SoPointerPosition &pos, ml::CSO *newCSO) |
Sets creation data to a newly created CSO. | |
void | extensionIdCB (SoField *) |
SoCSOEditorTools::LineRenderSettings | getLineRenderSettingsOnSlice () |
Creates a LineRenderSettings struct from the editors visualization settings "onSlice" section. | |
SoCSOEditorTools::LineRenderSettings | getLineRenderSettingsForCSO (ml::CSO *cso) |
Creates a LineRenderSettings struct from the visualization attributes of the given CSO. | |
void | drawPathPoints (const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, const SbVec2f &shadowOffsetDevice, SoView2DCSOExtensibleEditor *editor) |
Draws the CSO by drawing lines between the path points. Renders different types of CSOs. | |
void | renderPathPoints (const CSOPathPointsRenderSettings &renderSettings, const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const std::vector< CSOSliceCrossing > &pathPointsLists, GLint lineMode, const SbVec2f &shadowOffsetDevice) |
Draws path points with given render settings. | |
void | drawPathAndCrossingPoints (const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const SbVec2f &shadowOffsetDevice, const std::vector< CSOSliceCrossing > &pathAndCrossingPoints, GLint lineMode) |
Draws the path and crossing points. | |
void | drawShape (int style, SoView2DCSOExtensibleEditor *editor, ml::CSOVisualizationSettings *visualizationSettings, float deviceX, float deviceY, float size, float lineWidth=1.f) |
Draws the shape with the given style with the given center and size. | |
void | drawSeedPoints (const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, SoView2DCSOExtensibleEditor *editor) |
Draws the seed points of the CSO. | |
void | drawFixedSizeCircleAt (float deviceX, float deviceY) |
Renders a fixed size circle at the given position. | |
bool | isCSOVisible (const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, SoView2DCSOExtensibleEditor *editor) |
Returns whether the CSO is visible on the current slice. | |
ml::Vector3 | getTransformedPosition (const CSODrawView2DInfos &view2DInfos, const ml::Vector3 &position) |
If a SoCSOTransform exists, this method returns the transformed position. | |
void | mapWorldToDevice (const SoPointerPosition &pos, const ml::Vector3 &worldPosition, float &deviceX, float &deviceY) |
Returns device coordinates for a given world position. | |
void | mapWorldToDevice (View2DSliceList *slicelist, const ml::Vector3 &worldPosition, float &deviceX, float &deviceY) |
Returns device coordinates for a given world position. | |
ml::Vector3 | mapDeviceToWorld (const SoPointerPosition &pos, float deviceX, float deviceY) |
Returns world coordinates for given device position. | |
ml::Vector3 | mapWorldToVoxel (const SoPointerPosition &pos, const ml::Vector3 &worldPosition) |
Returns a voxel position for a given world position. | |
ml::Vector3 | mapWorldToVoxel (const SoPointerPosition &pos, const SbVec3f &worldPosition) |
Returns a voxel position for a given world position. | |
ml::Vector3 | mapVoxelToWorld (const SoPointerPosition &pos, const ml::Vector3 &voxelPosition) |
Returns a world position for a given voxel position. | |
SbVec2f | nonShadowOffset () const |
Returns the default offset for non-shadows in pixels. | |
SbVec2f | shadowOffset () const |
Returns the default offset for shadows in pixels. | |
GLint | getLineMode (ml::CSO *cso) |
Returns the correct line mode for open and for closed CSOs. | |
void | setupGLForCSO (const CSODrawCSOInfos &csoInfos) |
Sets up GL state for color, line width, and point size. | |
void | setupGLShadow (float generalAlpha=1.0f) |
Sets up the GL state for shadow rendering (color and line width). | |
void | glSetAlpha (float alpha) |
Sets an alpha value but retains the set color. | |
float | getDepthAlpha (int maxSliceDistance, int currentSliceDistance) const |
Returns an alpha factor based on the max distance and the current distance. | |
bool | doesCSOTimePointMatchCurrentTimePoint (const CSODrawView2DInfos &view2DInfos, ml::CSO *cso) |
Returns true if the CSO's time point matches the (overwritten) current time point. | |
Protected Attributes inherited from SoCSOEditorExtension | |
SoView2DCSOExtensibleEditor * | _editor |
ml::CSOListPtr | _hitCSOList |
Pointer to internal/interactive states. | |
ml::CSO * | _hitCSO |
ml::CSOSeedPoint * | _hitSeedPoint |
ml::CSOPathPoints * | _hitPathPoints |
float | _hitDistance |
ml::CSO * | _csoUnderMouse |
ml::CSOVisualizationSettings | _visualizationSettings |
Default visual settings. Access them via the method getVisualSettings(). | |
SbString | _subType |
Member for subtype of generated CSOs. | |
Extension for rendering CSOs in their cross-section.
Extension for rendering CSOs cut by the slice from the side.
Definition at line 24 of file SoCSOCrossSectionRenderer.h.
SoCSOCrossSectionRenderer::SoCSOCrossSectionRenderer | ( | ) |
Standard constructor.
|
inlineoverridevirtual |
Implements SoCSOEditorExtension.
Definition at line 41 of file SoCSOCrossSectionRenderer.h.
Implements SoCSOEditorExtension.
Definition at line 42 of file SoCSOCrossSectionRenderer.h.
|
inlineoverridevirtual |
Implements SoCSOEditorExtension.
Definition at line 40 of file SoCSOCrossSectionRenderer.h.
|
inlineoverridevirtual |
Returns the cursor shape that indicates the next creation.
Reimplemented from SoCSOEditorExtension.
Definition at line 49 of file SoCSOCrossSectionRenderer.h.
References SoViewerProxy::DEFAULT_CURSOR.
|
inlineoverridevirtual |
Drawing routine.
Reimplemented from SoCSOEditorExtension.
Definition at line 34 of file SoCSOCrossSectionRenderer.h.
|
overridevirtual |
Implements SoCSOGeneralRendererEditorExtension.
|
inlineoverridevirtual |
Sets seed points while moving the mouse – but not while dragging.
Is called in isSensitiveAt only while interacting on the same slice where the interaction has started.
Implements SoCSOEditorExtension.
Definition at line 43 of file SoCSOCrossSectionRenderer.h.
|
inlineoverridevirtual |
Implements SoCSOEditorExtension.
Definition at line 46 of file SoCSOCrossSectionRenderer.h.
|
inlineoverridevirtual |
Implements SoCSOEditorExtension.
Definition at line 47 of file SoCSOCrossSectionRenderer.h.
|
inlineoverridevirtual |
Implements SoCSOEditorExtension.
Definition at line 45 of file SoCSOCrossSectionRenderer.h.
Returns whether a given CSO should be rendered by this general extension.
Overwrite this in general renderers.
Reimplemented from SoCSOEditorExtension.
Definition at line 51 of file SoCSOCrossSectionRenderer.h.
SoSFEnum SoCSOCrossSectionRenderer::fillingFromSideLineWidthMode |
Definition at line 55 of file SoCSOCrossSectionRenderer.h.
SoSFFloat SoCSOCrossSectionRenderer::fillingFromSideManualLineWidth |
Definition at line 56 of file SoCSOCrossSectionRenderer.h.
SoSFBool SoCSOCrossSectionRenderer::shouldRenderCrossingPoints |
Definition at line 57 of file SoCSOCrossSectionRenderer.h.
SoSFBool SoCSOCrossSectionRenderer::useHoleCorrection |
Definition at line 53 of file SoCSOCrossSectionRenderer.h.
SoSFBool SoCSOCrossSectionRenderer::useHoleCorrectionForGroupsOnly |
Definition at line 54 of file SoCSOCrossSectionRenderer.h.