MeVisLab Toolbox Reference
|
#include <SoView2DCSOEditorBase.h>
Public Member Functions | |
SoView2DCSOEditorBase () | |
Default constructor. More... | |
void | setUpVisualization (ml::CSOList *csoList, ml::CSO *cso, const CSOEditorState &editorState, ml::StylePalette *stylePalette, CSOVisualParameters &visualParameters) |
Sets up CSO visualization parameters for the given CSO. More... | |
int | getStylePaletteIndex (const ml::CSO *cso, ml::StylePalette *stylePalette) const |
Returns the index into the StylePalette depending on the module's settings. More... | |
int | evaluateHitPoint (View2DSliceList *slicelist, const ml::Vector3 ¤tHitPoint, const ml::CSOList *csoList, const std::string &editorId, const ml::CSOBoundingBox &slabBB, int pickingMode, ml::CSO *&hitCSO, ml::CSOSeedPoint *&hitSeedPoint, ml::CSOPathPoints *&hitPathPoints, float &distance) |
Checks for hits of the given point with a CSO and returns the hit mode. More... | |
bool | isEditable (const ml::CSO *cso, View2DSliceList *slicelist, int currentSlice) const |
Returns whether the given CSO is editable. More... | |
virtual int | getTimePoint (View2DSliceList *slicelist, int slice) const |
Returns the current timepoint which is either the actual shown timepoint or the timepoint overwritten by the field overwriteTimePoint; The slice parameter is not used in the standard implementation but can be necessary in derived classes. More... | |
bool | shouldSkipCSOOnSlice (ml::CSO *cso, View2DSliceList *slicelist, int z) |
Returns whether the given CSO should be skipped (rendering, interacting with) on the given slice. More... | |
bool | getHitCoordinates (View2DSliceList *slicelist, View2DEvent *ec, const ml::CSOBoundingBox &slabBB, ml::Vector3 &hitPoint) |
Fills up a hit point with world coordinates and returns true if the image was hit. More... | |
void | setUpIcons () |
Sets up the internal icon list from an external icon file. More... | |
void | drawSeedPoints (CSOVisualParameters &visualParameters, const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, ml::CSOSeedPoint *underCursorSeedPoint, SoView2DExtension *extension, bool useIcons) const |
Renders seed points of the given CSO. More... | |
void | drawSeedPoints (CSOVisualParameters &visualParameters, ml::CSO *cso, const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, ml::CSOSeedPoint *underCursorSeedPoint, SoView2DExtension *extension, bool useIcons) const |
\old Renders seed points of the given CSO. More... | |
Protected Member Functions | |
virtual | ~SoView2DCSOEditorBase () |
Destructor. More... | |
virtual bool | getShouldOnlyInteractWithSelectedCSO () const =0 |
pure virtual access methods to fields every editor needs to implement More... | |
virtual float | getSelectionTolerance () const =0 |
virtual bool | getShowOnlyParallelCSOs () const =0 |
virtual bool | getShowCSOsOnAllTimePoints () const =0 |
virtual bool | getOverwriteCurrentTimePoint () const =0 |
virtual int | getNewCurrentTimePoint () const =0 |
virtual float | getShowParallelThickness () const =0 |
virtual bool | getUseStylePalette () const =0 |
virtual float | getGlobalAlphaFactor () const =0 |
virtual int | getStylePaletteUseIndexAs () const =0 |
virtual bool | getUseIconFile () const =0 |
virtual SbString | getIconFile () const =0 |
virtual SbString | getInternalIconFile () const =0 |
virtual bool | getHighlightSelectedGroups () const =0 |
virtual bool | getOverwriteSelectionVisualizationSettings () const =0 |
virtual int | getSelectionColoringMode () const =0 |
virtual float | getSelectionBrightenColor () const =0 |
virtual SbColor | getSelectionFixedColor () const =0 |
virtual int | getSelectionLineWidthMode () const =0 |
virtual float | getSelectionWidenLineWidth () const =0 |
virtual float | getSelectionFixedLineWidth () const =0 |
virtual int | getSelectedSeedPointColoringMode () const =0 |
virtual int | getSelectedSeedPointSizeMode () const =0 |
virtual float | getSelectedSeedPointBrightenColor () const =0 |
virtual float | getSelectedSeedPointAlpha () const =0 |
virtual SbColor | getSelectedSeedPointFixedColor () const =0 |
virtual float | getSelectedSeedPointEnlargeSize () const =0 |
virtual float | getSelectedSeedPointSize () const =0 |
virtual bool | getEnableMouseOverHighlighting () const =0 |
virtual int | getMouseOverColorMode () const =0 |
virtual SbColor | getMouseOverColorColor () const =0 |
virtual float | getMouseOverColorBrightenValue () const =0 |
virtual int | getMouseOverLineWidthMode () const =0 |
virtual float | getMouseOverLineWidthLineWidth () const =0 |
virtual float | getMouseOverLineWidthWidenValue () const =0 |
virtual bool | getUsePathPointColorForSeedPoints () const =0 |
virtual bool | getShowSeedPoints () const =0 |
virtual int | getLabelColorMode () const =0 |
virtual SbColor | getGeneralLabelColor () const =0 |
virtual float | getGeneralLabelAlpha () const =0 |
Protected Attributes | |
View2DIcons * | _icons |
A pointer to the 2D icons. More... | |
Definition at line 39 of file SoView2DCSOEditorBase.h.
SoView2DCSOEditorBase::SoView2DCSOEditorBase | ( | ) |
Default constructor.
|
protectedvirtual |
Destructor.
void SoView2DCSOEditorBase::drawSeedPoints | ( | CSOVisualParameters & | visualParameters, |
const CSODrawCSOInfos & | csoInfos, | ||
const CSODrawView2DInfos & | view2DInfos, | ||
ml::CSOSeedPoint * | underCursorSeedPoint, | ||
SoView2DExtension * | extension, | ||
bool | useIcons | ||
) | const |
Renders seed points of the given CSO.
void SoView2DCSOEditorBase::drawSeedPoints | ( | CSOVisualParameters & | visualParameters, |
ml::CSO * | cso, | ||
const CSODrawCSOInfos & | csoInfos, | ||
const CSODrawView2DInfos & | view2DInfos, | ||
ml::CSOSeedPoint * | underCursorSeedPoint, | ||
SoView2DExtension * | extension, | ||
bool | useIcons | ||
) | const |
\old Renders seed points of the given CSO.
int SoView2DCSOEditorBase::evaluateHitPoint | ( | View2DSliceList * | slicelist, |
const ml::Vector3 & | currentHitPoint, | ||
const ml::CSOList * | csoList, | ||
const std::string & | editorId, | ||
const ml::CSOBoundingBox & | slabBB, | ||
int | pickingMode, | ||
ml::CSO *& | hitCSO, | ||
ml::CSOSeedPoint *& | hitSeedPoint, | ||
ml::CSOPathPoints *& | hitPathPoints, | ||
float & | distance | ||
) |
Checks for hits of the given point with a CSO and returns the hit mode.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
bool SoView2DCSOEditorBase::getHitCoordinates | ( | View2DSliceList * | slicelist, |
View2DEvent * | ec, | ||
const ml::CSOBoundingBox & | slabBB, | ||
ml::Vector3 & | hitPoint | ||
) |
Fills up a hit point with world coordinates and returns true if the image was hit.
Return whether the valid image region was hit.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
pure virtual access methods to fields every editor needs to implement
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
int SoView2DCSOEditorBase::getStylePaletteIndex | ( | const ml::CSO * | cso, |
ml::StylePalette * | stylePalette | ||
) | const |
Returns the index into the StylePalette depending on the module's settings.
|
protectedpure virtual |
|
virtual |
Returns the current timepoint which is either the actual shown timepoint or the timepoint overwritten by the field overwriteTimePoint; The slice parameter is not used in the standard implementation but can be necessary in derived classes.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
bool SoView2DCSOEditorBase::isEditable | ( | const ml::CSO * | cso, |
View2DSliceList * | slicelist, | ||
int | currentSlice | ||
) | const |
Returns whether the given CSO is editable.
void SoView2DCSOEditorBase::setUpIcons | ( | ) |
Sets up the internal icon list from an external icon file.
void SoView2DCSOEditorBase::setUpVisualization | ( | ml::CSOList * | csoList, |
ml::CSO * | cso, | ||
const CSOEditorState & | editorState, | ||
ml::StylePalette * | stylePalette, | ||
CSOVisualParameters & | visualParameters | ||
) |
Sets up CSO visualization parameters for the given CSO.
bool SoView2DCSOEditorBase::shouldSkipCSOOnSlice | ( | ml::CSO * | cso, |
View2DSliceList * | slicelist, | ||
int | z | ||
) |
Returns whether the given CSO should be skipped (rendering, interacting with) on the given slice.
|
protected |
A pointer to the 2D icons.
Definition at line 85 of file SoView2DCSOEditorBase.h.