OpenWalnut  1.5.0dev
Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
WMHierchClustDisplay Class Reference

Module to explore hierarchical parcellations of brain data The module loads a tree file from disk, and allows tree processing, visualization of seed voxel locations onto anatomy image exploration of the hierarchical tree, partition selection, and along with partition2Mesh module the projection of partitions back to the brain surface. More...

#include <WMHierchClustDisplay.h>

+ Inheritance diagram for WMHierchClustDisplay:
+ Collaboration diagram for WMHierchClustDisplay:

Classes

class  MainViewEventHandler
 Small event handler class to catch left mouse buttons clicks in the main view. More...
 

Public Member Functions

 WMHierchClustDisplay ()
 Constructor. More...
 
virtual ~WMHierchClustDisplay ()
 Destructor. More...
 
virtual const std::string getName () const
 Gives back the name of this module. More...
 
virtual const std::string getDescription () const
 Gives back a description of this module. More...
 
virtual std::shared_ptr< WModulefactory () const
 new instance of this module Due to the prototype design pattern used to build modules, this method returns a new instance of this method. More...
 
- Public Member Functions inherited from WModule
 WModule ()
 Constructs a new WModule instance. More...
 
virtual ~WModule ()
 Destructor. More...
 
const InputConnectorListgetInputConnectors () const
 Gives back input connectors. More...
 
std::shared_ptr< WModuleInputConnectorgetInputConnector (std::string name)
 Finds the named connector for the module. More...
 
std::shared_ptr< WModuleInputConnectorfindInputConnector (std::string name)
 Finds the named connector for the module. More...
 
const OutputConnectorListgetOutputConnectors () const
 Gives back output connectors. More...
 
std::shared_ptr< WModuleOutputConnectorgetOutputConnector (std::string name)
 Finds the named connector for the module. More...
 
std::shared_ptr< WModuleOutputConnectorfindOutputConnector (std::string name)
 Finds the named connector for the module. More...
 
std::shared_ptr< WModuleConnectorgetConnector (std::string name)
 Finds the named connector for the module. More...
 
std::shared_ptr< WModuleConnectorfindConnector (std::string name)
 Finds the named connector for the module. More...
 
std::shared_ptr< WPropertiesgetProperties () const
 Return a pointer to the properties object of the module. More...
 
std::shared_ptr< WPropertiesgetInformationProperties () const
 Return a pointer to the information properties object of the module. More...
 
const WBoolFlagisInitialized () const
 Determines whether the module instance is properly initialized. More...
 
const WBoolFlagisUseable () const
 Checks whether the module instance is ready to be used. More...
 
const WBoolFlagisAssociated () const
 Checks whether this module is associated with an container. More...
 
const WBoolFlagisReady () const
 Checks whether this module is ready. More...
 
const WBoolFlagisReadyOrCrashed () const
 This is the logical or of isReady and isCrashed. More...
 
const WBoolFlagisRunning () const
 Returns a flag denoting whether the thread currently is running or nor. More...
 
void waitRestored ()
 This method waits for the module to be restored completely. More...
 
bool isRestoreNeeded () const
 Check whether this module is in restore mode. More...
 
void setRestoreNeeded (bool restore=true)
 Change the restore mode. More...
 
void reportRestoreComplete ()
 Called by loaders to tell the module that loading has been completed. More...
 
std::shared_ptr< WModuleContainergetAssociatedContainer () const
 The container this module is associated with. More...
 
virtual boost::signals2::connection subscribeSignal (MODULE_SIGNAL signal, t_ModuleGenericSignalHandlerType notifier)
 Connects a specified notify function with a signal this module instance is offering. More...
 
virtual boost::signals2::connection subscribeSignal (MODULE_SIGNAL signal, t_ModuleErrorSignalHandlerType notifier)
 Connects a specified notify function with a signal this module instance is offering. More...
 
virtual std::shared_ptr< WProgressCombinergetRootProgressCombiner ()
 Gets the modules base progress. More...
 
virtual const char ** getXPMIcon () const
 Get the icon for this module in XPM format. More...
 
virtual MODULE_TYPE getType () const
 Gets the type of the module. More...
 
void disconnect ()
 Completely disconnects all connected connectors of this module. More...
 
WCombinerTypes::WDisconnectList getPossibleDisconnections ()
 Gives a list of all WDisconnectCombiners possible. More...
 
boost::filesystem::path getLocalPath () const
 Returns the local path of the module. More...
 
boost::filesystem::path getLibPath () const
 Returns the absolute path to the library containing this module. More...
 
std::string getPackageName () const
 Returns the name of the package the module belongs to, The package name basically is the name of the library containing this and maybe other modules. More...
 
bool isDeprecated () const
 Checks whether the module was marked as deprecated. More...
 
std::string getDeprecationMessage () const
 Queries the deprecation message of a module if specified. More...
 
virtual WModuleMetaInformation::ConstSPtr getMetaInformation () const
 The meta information of this module. More...
 
const std::string & getUUID () const
 Get the UUID of the module instance. More...
 
WPropString getRuntimeName () const
 Returns the name the user has given this module. More...
 
const WRequirementcheckRequirements () const
 This method checks whether all the requirements of the module are complied. More...
 
virtual boost::signals2::connection subscribeSignal (THREAD_SIGNAL signal, t_ThreadErrorSignalHandlerType notifier)
 Connects a specified notify function with a signal this thread instance is offering. More...
 
- Public Member Functions inherited from WThreadedRunner
 WThreadedRunner ()
 Default constructor. More...
 
virtual ~WThreadedRunner ()
 Destructor. More...
 
virtual void run ()
 Run thread. More...
 
void run (THREADFUNCTION f)
 Run thread. More...
 
void wait (bool requestFinish=false)
 Wait for the thread to be finished. More...
 
virtual void requestStop ()
 This method's purpose is to request a stop without waiting for it. More...
 
virtual boost::signals2::connection subscribeSignal (THREAD_SIGNAL signal, t_ThreadErrorSignalHandlerType notifier)
 Connects a specified notify function with a signal this thread instance is offering. More...
 
const WBoolFlagisCrashed () const
 Checks whether this thread has been crashed. More...
 
const std::string & getCrashMessage () const
 Get the message of the exception finally causing the crash. More...
 
void setThreadName (std::string name)
 Set the name of the thread. More...
 
std::string getThreadName () const
 Returns the current thread name. More...
 
- Public Member Functions inherited from WPrototyped
 WPrototyped ()
 Default constructor. More...
 
virtual ~WPrototyped ()
 Destructor. More...
 
template<typename T >
bool isA ()
 Checks whether the actual prototype has the specified runtime type. More...
 

Protected Member Functions

virtual void moduleMain ()
 Entry point after loading the module. Runs in separate thread. More...
 
virtual void connectors ()
 Initialize the connectors this module is using. More...
 
virtual void properties ()
 Initialize the properties for this module. More...
 
- Protected Member Functions inherited from WModule
void threadMain ()
 Thread entry point. More...
 
virtual void onThreadException (const WException &e)
 This method is called if an exception was caught, which came from the custom thread code. More...
 
void setAssociatedContainer (std::shared_ptr< WModuleContainer > container)
 Sets the container this module is associated with. More...
 
virtual void requirements ()
 Initialize requirements in this function. More...
 
virtual std::string deprecated () const
 This function allows module programmers to mark their modules deprecated in a user-friendly way. More...
 
void initialize ()
 Manages initialization. More...
 
virtual void cleanup ()
 Called whenever the module should shutdown. More...
 
void addConnector (std::shared_ptr< WModuleInputConnector > con)
 Adds the specified connector to the list of inputs. More...
 
void addConnector (std::shared_ptr< WModuleOutputConnector > con)
 Adds the specified connector to the list of outputs. More...
 
void removeConnectors ()
 Removes all connectors properly. More...
 
virtual void activate ()
 Callback for m_active. More...
 
virtual const t_GenericSignalHandlerType getSignalHandler (MODULE_CONNECTOR_SIGNAL signal)
 Gives the signal handler function responsible for a given signal. More...
 
virtual void notifyConnectionEstablished (std::shared_ptr< WModuleConnector > here, std::shared_ptr< WModuleConnector > there)
 Gets called whenever a connector gets connected to the specified input. More...
 
virtual void notifyConnectionClosed (std::shared_ptr< WModuleConnector > here, std::shared_ptr< WModuleConnector > there)
 Gets called whenever a connection between a remote and local connector gets closed. More...
 
virtual void notifyDataChange (std::shared_ptr< WModuleConnector > input, std::shared_ptr< WModuleConnector > output)
 Gets called when the data on one input connector changed. More...
 
void ready ()
 Call this whenever your module is ready and can react on property changes. More...
 
wlog::WStreamedLogger infoLog () const
 Logger instance for comfortable info logging. More...
 
wlog::WStreamedLogger debugLog () const
 Logger instance for comfortable debug logging. More...
 
wlog::WStreamedLogger warnLog () const
 Logger instance for comfortable warning- logs. More...
 
wlog::WStreamedLogger errorLog () const
 Logger instance for comfortable error logging. More...
 
void setLocalPath (boost::filesystem::path path)
 Sets the local module path. More...
 
void setLibPath (boost::filesystem::path path)
 Set the path to the library which contains this module. More...
 
void setPackageName (std::string name)
 Set the package name. More...
 
- Protected Member Functions inherited from WThreadedRunner
virtual void notifyStop ()
 Gets called when the thread should be stopped. More...
 
void yield () const
 Give remaining execution timeslice to another thread. More...
 
void sleep (const int32_t t) const
 Sets thread asleep. More...
 
void msleep (const int32_t t) const
 Sets thread asleep. More...
 
void waitForStop ()
 Let the thread sleep until a stop request was given. More...
 
void handleDeadlyException (const WException &e, std::string sender="WThreadedRunner")
 Handle the specified exception which was not caught in the thread, which basically means the thread has crashed. More...
 

Private Member Functions

void initProperties ()
 updates property min/max values after loading a clustering file More...
 
bool loadTree (boost::filesystem::path treeFile)
 loads the tree file into the tree object More...
 
void initTreeData ()
 initializes properties depending on the specific tree structure loaded More...
 
void colorBranch (const size_t &root, const WColor &color)
 recursive function that fills the display colors for a whole branch with a selected color More...
 
void colorBranchCustom (const size_t &root, const WColor &color)
 recursive function that fills the display colors for a whole branch with a custom color from a scheme previously generated More...
 
void initTexture ()
 creates a texture, assigning the colouring of the current partition to the respective seed voxels in the displayed anatomy texture. More...
 
void renderCubeMesh ()
 renders the triangulated seed voxels More...
 
void initWidgets ()
 inits the graphical widgets in the 3d scene More...
 
void updateWidgets ()
 updates the graphical widgets in the 3d scene More...
 
bool widgetClicked ()
 handles mouse clicks into the dendrogram More...
 
bool dendrogramClick (const WVector2f &pos)
 handles clicks into the dendrogram More...
 
bool dendrogramClickRight (const WVector2f &pos)
 handles right clicks into the dendrogram More...
 
void updateSelection (const std::vector< WColor > &preloadedColors=std::vector< WColor >())
 after the active cluster list has changed this function updates the texture, cubeMesh, dendrogram and output More...
 
void updateColors ()
 updates the selection colors More...
 
void updateOutput2 ()
 updates the voxels coordinate output More...
 
void writePartition ()
 writes partition selection(s) in an ascii file More...
 
void initializeColorsSize ()
 Assigns a default color to each node travelling the tree top-down based on dividing first the biggest cluster where the biggest children keeps the color of the parent basing the algorithm on cluster size. More...
 
void initializeColorsHdist ()
 Assigns a default color to each node travelling the tree top-down based on hierarchy where the biggest children keeps the color of the parent basing the algorithm on cluster size. More...
 
void assignColorHierch (const size_t thisID, const WColor thisColor)
 Uses the provided node Id and color to update the current tree default coloring using hierarchical information up: each parent node will be recolored to this color as long as it is the biggest of the children down: the biggest child at each division will be also recolored to this. More...
 
void clusterSelection ()
 manages cluster selection action response More...
 
void colorAction ()
 manages action after the trigger of the color section has been pressed More...
 
void addPartitions ()
 Adds partitions form current selections into the tree object. More...
 
void recolorPartitions ()
 recolors added partitions from the tree object with current selection set of colors More...
 

Private Attributes

std::shared_ptr< WModuleInputData< WDataSetSingle > > m_input
 An input connector that accepts order 1 datasets. More...
 
std::shared_ptr< WModuleOutputData< WDataSetVector > > m_output
 An output connector for the output scalar dsataset. More...
 
std::shared_ptr< WModuleOutputData< WDataSetScalar > > m_output2
 An output connector for the output coordinate vector. More...
 
std::shared_ptr< WDataSetVectorm_outData
 This is a pointer to the current output1. More...
 
std::shared_ptr< WDataSetScalarm_outData2
 This is a pointer to the current output2. More...
 
osgWidget::WindowManager * m_wm
 stores a pointer to the window manager used for osg wdgets and overlay stuff More...
 
osg::Camera * m_camera
 stores the camera object More...
 
int m_oldViewHeight
 stores the old viewport resolution height to check whether a resize happened More...
 
int m_oldViewWidth
 stores the old viewport resolution width to check whether a resize happened More...
 
osg::ref_ptr< WGEGroupNodem_moduleNode
 Pointer to the modules group node. More...
 
osg::ref_ptr< WGEGroupNodem_dendrogramNode
 Pointer to the dendrogram group node. More...
 
osg::ref_ptr< WGEGroupNodem_meshNode
 Pointer to the cube mesh group node. More...
 
osg::ref_ptr< WGEShaderm_shader
 The shader. More...
 
std::shared_ptr< WDataSetSinglem_anatomy
 This is a pointer to the anatomy dataset the module is currently working on. More...
 
osg::ref_ptr< osg::Texture3D > m_texture
 stores a pointer to the texture we paint in (to overlay to anatomy) More...
 
std::vector< size_t > m_textureLabels
 label vector for texture creation More...
 
std::shared_ptr< WGridRegular3Dm_grid
 stores a pointer to the grid we use; More...
 
WHtree m_tree
 stores the tree object as loaded from file; More...
 
bool m_treeDirty
 true if the dendrogram needs redrawing More...
 
bool m_labelsDirty
 true if the labels need redrawing More...
 
size_t m_treeZoomRoot
 control variable for tree zoom mode More...
 
WNonBinDendroGeodem_dendrogramGeode
 stores the dendrogram geode More...
 
float m_horizontalLine
 to draw a horizontal line when theres distance partition cutting More...
 
std::vector< WColor > m_nodeColorsCustom
 stores preset color for every tree node, so clusters keep same color through different selection More...
 
std::vector< WColor > m_treeDisplayColors
 stores a the current colors each tree node should be displayed, given the current selection More...
 
std::map< size_t, WColor > m_selectionColors
 stores a the current colors each cluster should be displayed, given the current selection More...
 
std::map< size_t, WColor > m_selectionColorsBackup
 stores a backup of m_selectionColors More...
 
std::vector< std::vector< size_t > > m_clusterVoxels
 stores the contained seed voxel IDs for each cluster, increases speed for texture drawing More...
 
std::vector< size_t > m_discardedVoxels
 stores the contained seed voxel IDs for discarded elements More...
 
std::vector< size_t > m_selectionClusters
 stores the currently activated clusters More...
 
std::vector< size_t > m_selectionLeaves
 stores the leaves output by the selection More...
 
std::shared_ptr< WTriangleMeshm_cubeMesh
 Cube-like triangulation of the seed voxels. More...
 
std::shared_ptr< WTriangleMeshm_discardedMesh
 Cube-like triangulation of the discarded voxels. More...
 
std::vector< osg::ref_ptr< WOSGButton > > m_selectionLabels
 list of buttons for the active cluster selection More...
 
std::shared_ptr< WConditionm_propTriggerChange
 A condition used to notify about changes in several properties. More...
 
WPropGroup m_groupInfoSelected
 grouping the selected info More...
 
WPropInt m_infoSelectedID
 Info property: clusters in current partition. More...
 
WPropInt m_infoSelectedSize
 Info property: clusters in current partition. More...
 
WPropInt m_infoSelectedDistance
 Info property: clusters in current partition. More...
 
WPropGroup m_groupInfoPartition
 grouping the partition info More...
 
WPropInt m_infoPartNumber
 Info property: clusters in current partition. More...
 
WPropInt m_infoPartActive
 Info property: active clusters in current partition. More...
 
WPropInt m_infoPartLeaves
 Info property: leaf clusters in current partition. More...
 
WPropDouble m_infoCutValue
 Info property: cut value for current partition. More...
 
WPropGroup m_groupInfoTree
 grouping the tree info More...
 
WPropString m_infoTreeName
 Info property: current tree name. More...
 
WPropInt m_infoCountLeaves
 Info property: number of leaves. More...
 
WPropInt m_infoCountNodes
 Info property: number of nodes. More...
 
WPropInt m_infoCountDiscarded
 Info property: number of discarded voxels. More...
 
WPropInt m_infoMaxLevel
 Info property: maximum hierarchical level. More...
 
WPropDouble m_infoCpcc
 Info property: cpcc value. More...
 
WPropGroup m_groupInfoMessage
 grouping the message info More...
 
WPropString m_infoPartMessage
 Info property: partition output message. More...
 
WPropGroup m_groupRead
 grouping the tree loading More...
 
WPropFilename m_propReadFilename
 The tree file will be loaded form this directory. More...
 
WPropTrigger m_propReadTreeTrigger
 This property triggers the actual reading of the tree file. More...
 
WPropGroup m_groupDendrogram
 grouping the dendrogram manipulation properties More...
 
WPropBool m_propShowDendrogram
 controls the display of the dendrogram overlay More...
 
WPropBool m_propDendroPlotByLevel
 controls plotting the height of a join (1 plots the tree by hierarchical level, 0 by cluster distance) More...
 
WPropBool m_propTriangleLeaves
 specifies a minimum size for a cluster so that too small cluster won't get an own color More...
 
WPropTrigger m_propDendroZoomIn
 zoom into tree, sets m_treeZoom true and m_zoomRoot to the currently selected cluster More...
 
WPropTrigger m_propDendroZoomOut
 zooms out, m_treeZoom = false, dendrogram shows the whole tree More...
 
std::shared_ptr< WItemSelectionm_propDendroSideList
 A list of dendrogram positions. More...
 
WPropSelection m_propDendroSideSelector
 Selection property for dendrogram positions. More...
 
WPropGroup m_groupDendroManual
 grouping the dendrogram manual resizing properties More...
 
WPropInt m_propDendroSizeX
 controls the width of the dendrogram More...
 
WPropInt m_propDendroSizeY
 controls the height of the dendrogram More...
 
WPropInt m_propDendroOffsetX
 controls the horizontal origin of the dendrogram More...
 
WPropInt m_propDendroOffsetY
 controls the vertical origin of the dendrogram More...
 
WPropGroup m_groupPartition
 grouping the different selection methods More...
 
WPropTrigger m_propPartRoot
 triggers the selection of root cluster More...
 
WPropInt m_propSourceCluster
 the current subtree root cluster More...
 
WPropSelection m_propPartitionSelector
 Selection property for clusters. More...
 
std::shared_ptr< WItemSelectionm_propPartitionSelectionList
 A list of cluster selection methods. More...
 
WPropSelection m_propConditionSelector
 Selection condition for clusters. More...
 
std::shared_ptr< WItemSelectionm_propConditionSelectionsList
 A list of condition selection methods. More...
 
WPropInt m_propPartNumClusters
 number of clusters of the desired partition More...
 
WPropInt m_propPartSizeValue
 size cut value for the desired partition More...
 
WPropInt m_propPartSearchDepthValue
 depth of search for optimized partitioning More...
 
WPropDouble m_propPartRelativeValue
 Relative size cut value for the desired partition. More...
 
WPropDouble m_propPartDistanceValue
 distance cut value for the desired partition More...
 
WPropInt m_propPartHlevelValue
 hierarchical level cut value for the desired partition More...
 
WPropInt m_propPreloadPartitionNr
 predefined partition to load More...
 
WPropBool m_propPartExcludeLeaves
 defines if base nodes will be subdivided or not More...
 
WPropTrigger m_propDoPartition
 triggers the cluster selection update More...
 
WPropGroup m_groupVisualization
 grouping the different visualization options More...
 
WPropInt m_propSubselectedCluster
 the currently selected cluster More...
 
WPropColor m_propSubselectedcolor
 color for subselected cluster More...
 
std::shared_ptr< WItemSelectionm_propColorSchemeList
 List of color schemes. More...
 
WPropSelection m_propColorSchemeSelector
 selection of color schemes More...
 
std::shared_ptr< WItemSelectionm_propColorActionList
 List of color schemes. More...
 
WPropSelection m_propColorActionSelector
 selection of color schemes More...
 
WPropTrigger m_propColorActionTrigger
 shuffle current colors More...
 
WPropBool m_propShowLabels
 show info labels for selected clusters More...
 
std::shared_ptr< WItemSelectionm_propLabelList
 List of label contents. More...
 
WPropSelection m_propLabelInfoSelector
 selection of info on button labels More...
 
WPropBool m_propShowDiscarded
 visualize also discarded voxels More...
 
WPropBool m_propShowCubeMesh
 visualize voxel cube triangulation More...
 
WPropBool m_propBoundaries
 visualize only parcel boundaries More...
 
WPropColor m_propDiscardedColor
 color for discarded voxels More...
 
WPropColor m_propBoundaryColor
 color for cluster boundaries More...
 
WPropColor m_propInactiveColor
 color for inactive mesh voxels More...
 
WPropGroup m_groupTreeProcess
 grouping the different tree processing methods More...
 
WPropSelection m_propProcessSelector
 Selection property for processing. More...
 
std::shared_ptr< WItemSelectionm_propProcessSelectionsList
 A list of cluster selection methods. More...
 
WPropInt m_propSafeSize
 maximum size to be pruned More...
 
WPropInt m_propPruneJoinSize
 join size for pruning process More...
 
WPropDouble m_propPruneSizeRatio
 size ratio for pruning process More...
 
WPropDouble m_propDistanceGap
 distance gap for prunin process More...
 
WPropDouble m_propFlatLimit
 distance gap for prunin process More...
 
WPropBool m_propKeepBases
 dont debinarize basenodes More...
 
WPropInt m_propSmoothSize
 desired cluster size fro smoothing More...
 
WPropInt m_propPrunedNumber
 number of leaves to be pruned by random pruning More...
 
WPropInt m_propPrunedSeed
 rng seed for random pruning More...
 
WPropInt m_propCoarseRatio
 ratio of decimation More...
 
WPropTrigger m_propDoProcessing
 triggers the tree processing More...
 
WPropGroup m_groupSavedPartition
 grouping the partition options More...
 
WPropTrigger m_propAddPartTrigger
 This property triggers the inclusion in the tree of the current partition. More...
 
WPropTrigger m_propRecolorPartTrigger
 This property triggers the recoloring partition of the current partitions. More...
 
WPropTrigger m_propClearPartsTrigger
 This property triggers the clearing of current partitions in the tree. More...
 
WPropGroup m_groupWrite
 grouping the tree writing More...
 
WPropFilename m_propWriteTreeFilename
 The tree file will be written to this location. More...
 
WPropTrigger m_propWriteTreeTrigger
 This property triggers the actual writing of the tree file. More...
 
WPropFilename m_propPartitionFile
 The partition file will be written to this location. More...
 
WPropTrigger m_propPartitionsTrigger
 This property triggers the actual writing of the partition file. More...
 

Additional Inherited Members

- Public Types inherited from WModule
typedef std::vector< std::shared_ptr< WModuleInputConnector > > InputConnectorList
 The type for the list of input connectors. More...
 
typedef std::vector< std::shared_ptr< WModuleOutputConnector > > OutputConnectorList
 The type for the list of output connectors. More...
 
typedef std::shared_ptr< WModuleSPtr
 Shared pointer to a WModule. More...
 
typedef std::shared_ptr< const WModuleConstSPtr
 Shared pointer to a const WModule. More...
 
- Public Types inherited from WThreadedRunner
typedef std::shared_ptr< WThreadedRunnerSPtr
 Abbreviation to a shared_ptr to this type. More...
 
typedef std::shared_ptr< const WThreadedRunnerConstSPtr
 Abbreviation to a const shared_ptr to this type. More...
 
typedef boost::function< void(void) > THREADFUNCTION
 Type used for simple thread functions. More...
 
- Static Public Member Functions inherited from WModule
static SPtr findByUUID (std::string uuid)
 Find a module instance by UUID. More...
 
- Static Public Member Functions inherited from WThreadedRunner
static void setThisThreadName (std::string name)
 Static function to set the name of the calling thread. More...
 
- Protected Types inherited from WModule
typedef std::vector< WRequirement * > Requirements
 The type of the requirement list. More...
 
- Protected Attributes inherited from WModule
std::shared_ptr< WPropertiesm_properties
 The property object for the module. More...
 
std::shared_ptr< WPropertiesm_infoProperties
 The property object for the module containing only module whose purpose is "PV_PURPOSE_INFORMNATION". More...
 
std::shared_ptr< WProgressCombinerm_progress
 Progress indicator used as parent for all progress' of this module. More...
 
WBoolFlag m_initialized
 True if everything is initialized and ready to be used. More...
 
WBoolFlag m_isAssociated
 True if container got associated with this flag. More...
 
WBoolFlag m_isUsable
 True if associated && initialized. More...
 
WBoolFlag m_isReady
 True if ready() was called. More...
 
WBoolFlag m_isReadyOrCrashed
 It is true whenever m_isReady or WThreadedRunner::m_isCrashed is true. More...
 
WBoolFlag m_isRunning
 True if the module currently is running. More...
 
WBoolFlag m_isLoadFinished
 Flag to denote whether the module container and the project loader have finished their work. More...
 
bool m_restoreMode
 Flag denoting the current restore mode. More...
 
std::shared_ptr< WProgressm_readyProgress
 Progress indicator for the "ready" state. More...
 
WConditionSet m_moduleState
 The internal state of the module. More...
 
std::shared_ptr< WModuleContainerm_container
 The container this module belongs to. More...
 
InputConnectorList m_inputConnectors
 Set of input connectors associated with this module. More...
 
OutputConnectorList m_outputConnectors
 Set of output connectors associated with this module. More...
 
WPropBool m_active
 True whenever the module should be active. More...
 
WPropString m_runtimeName
 This property holds a user specified name for the current module instance. More...
 
boost::filesystem::path m_localPath
 The path where the module binary resides in. More...
 
boost::filesystem::path m_libPath
 The absolute path to the library containing this module. More...
 
std::string m_packageName
 The name of the lib/the package containing this module. More...
 
Requirements m_requirements
 The list of requirements. More...
 
- Protected Attributes inherited from WThreadedRunner
boost::thread m_thread
 Thread instance. More...
 
WBoolFlag m_shutdownFlag
 Condition getting fired whenever the thread should quit. More...
 
WBoolFlag m_isCrashed
 True whenever an exception is thrown during threadMain. More...
 
std::string m_crashMessage
 The crash message. More...
 

Detailed Description

Module to explore hierarchical parcellations of brain data The module loads a tree file from disk, and allows tree processing, visualization of seed voxel locations onto anatomy image exploration of the hierarchical tree, partition selection, and along with partition2Mesh module the projection of partitions back to the brain surface.

Definition at line 92 of file WMHierchClustDisplay.h.

Constructor & Destructor Documentation

◆ WMHierchClustDisplay()

WMHierchClustDisplay::WMHierchClustDisplay ( )

Constructor.

Definition at line 105 of file WMHierchClustDisplay.cpp.

Referenced by factory().

+ Here is the caller graph for this function:

◆ ~WMHierchClustDisplay()

WMHierchClustDisplay::~WMHierchClustDisplay ( )
virtual

Destructor.

Definition at line 114 of file WMHierchClustDisplay.cpp.

Member Function Documentation

◆ addPartitions()

void WMHierchClustDisplay::addPartitions ( )
private

Adds partitions form current selections into the tree object.

Definition at line 2499 of file WMHierchClustDisplay.cpp.

References WHnode::getID(), WHtree::getRoot(), WHtree::getSelectedColors(), WHtree::getSelectedPartitions(), WHtree::getSelectedValues(), WModule::infoLog(), WHtree::insertPartitions(), m_horizontalLine, m_propAddPartTrigger, m_propPreloadPartitionNr, m_selectionClusters, m_selectionColorsBackup, m_tree, and WPVBaseTypes::PV_TRIGGER_READY.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ assignColorHierch()

void WMHierchClustDisplay::assignColorHierch ( const size_t  thisID,
const WColor  thisColor 
)
private

Uses the provided node Id and color to update the current tree default coloring using hierarchical information up: each parent node will be recolored to this color as long as it is the biggest of the children down: the biggest child at each division will be also recolored to this.

Parameters
thisIDID of the reference node
thisColorcolor of the reference node

Definition at line 682 of file WMHierchClustDisplay.cpp.

References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), WHnode::getParent(), WHnode::isRoot(), m_nodeColorsCustom, m_tree, and WHtree::sortBySize().

Referenced by colorAction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clusterSelection()

void WMHierchClustDisplay::clusterSelection ( )
private

◆ colorAction()

void WMHierchClustDisplay::colorAction ( )
private

◆ colorBranch()

void WMHierchClustDisplay::colorBranch ( const size_t &  root,
const WColor &  color 
)
private

recursive function that fills the display colors for a whole branch with a selected color

Parameters
rootcluster to work on
colorcolor to paint

Definition at line 1882 of file WMHierchClustDisplay.cpp.

References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), m_tree, and m_treeDisplayColors.

Referenced by updateColors().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ colorBranchCustom()

void WMHierchClustDisplay::colorBranchCustom ( const size_t &  root,
const WColor &  color 
)
private

recursive function that fills the display colors for a whole branch with a custom color from a scheme previously generated

Parameters
rootcluster to work on
colorcolor to paint

Definition at line 1903 of file WMHierchClustDisplay.cpp.

References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), m_nodeColorsCustom, and m_tree.

+ Here is the call graph for this function:

◆ connectors()

void WMHierchClustDisplay::connectors ( )
protectedvirtual

Initialize the connectors this module is using.

Reimplemented from WModule.

Definition at line 138 of file WMHierchClustDisplay.cpp.

References WModule::addConnector(), WModule::connectors(), m_input, m_output, and m_output2.

+ Here is the call graph for this function:

◆ dendrogramClick()

bool WMHierchClustDisplay::dendrogramClick ( const WVector2f pos)
private

handles clicks into the dendrogram

Parameters
posthe mouse position during the click
Returns
true if it handled the click

Definition at line 1817 of file WMHierchClustDisplay.cpp.

References WNonBinDendroGeode::getClickedCluster(), WNonBinDendroGeode::inDendrogramArea(), WHtree::isLoaded(), m_dendrogramGeode, m_propShowDendrogram, m_propSourceCluster, m_tree, and m_treeZoomRoot.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dendrogramClickRight()

bool WMHierchClustDisplay::dendrogramClickRight ( const WVector2f pos)
private

handles right clicks into the dendrogram

Parameters
posthe mouse position during the click
Returns
true if it handled the click

Definition at line 1844 of file WMHierchClustDisplay.cpp.

References WNonBinDendroGeode::getClickedCluster(), WNonBinDendroGeode::inDendrogramArea(), WHtree::isLoaded(), m_dendrogramGeode, m_labelsDirty, m_propShowDendrogram, m_propSubselectedCluster, m_propSubselectedcolor, m_selectionClusters, m_selectionColors, m_selectionColorsBackup, m_tree, m_treeZoomRoot, and updateColors().

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ factory()

std::shared_ptr< WModule > WMHierchClustDisplay::factory ( ) const
virtual

new instance of this module Due to the prototype design pattern used to build modules, this method returns a new instance of this method.

NOTE: it should never be initialized or modified in some other way. A simple new instance is required.

Returns
the prototype used to create every module in OpenWalnut.

Implements WModule.

Definition at line 119 of file WMHierchClustDisplay.cpp.

References WMHierchClustDisplay().

+ Here is the call graph for this function:

◆ getDescription()

const std::string WMHierchClustDisplay::getDescription ( ) const
virtual

Gives back a description of this module.

Returns
module description.

Implements WPrototyped.

Definition at line 131 of file WMHierchClustDisplay.cpp.

◆ getName()

const std::string WMHierchClustDisplay::getName ( ) const
virtual

Gives back the name of this module.

Returns
the module's name.

Implements WPrototyped.

Definition at line 125 of file WMHierchClustDisplay.cpp.

◆ initializeColorsHdist()

void WMHierchClustDisplay::initializeColorsHdist ( )
private

Assigns a default color to each node travelling the tree top-down based on hierarchy where the biggest children keeps the color of the parent basing the algorithm on cluster size.

Definition at line 725 of file WMHierchClustDisplay.cpp.

References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), wge::getNthHSVColor(), WHtree::getNumNodes(), m_nodeColorsCustom, m_tree, and WHtree::sortBySize().

Referenced by colorAction().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initializeColorsSize()

void WMHierchClustDisplay::initializeColorsSize ( )
private

Assigns a default color to each node travelling the tree top-down based on dividing first the biggest cluster where the biggest children keeps the color of the parent basing the algorithm on cluster size.

Definition at line 763 of file WMHierchClustDisplay.cpp.

References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), wge::getNthHSVColor(), WHtree::getNumNodes(), m_nodeColorsCustom, m_tree, and WHtree::sortBySize().

Referenced by colorAction(), and initTreeData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initProperties()

void WMHierchClustDisplay::initProperties ( )
private

updates property min/max values after loading a clustering file

Definition at line 447 of file WMHierchClustDisplay.cpp.

References WHtree::getCpcc(), WHnode::getDistLevel(), WHnode::getHLevel(), WHnode::getID(), WHtree::getName(), WHtree::getNode(), WHtree::getNumDiscarded(), WHtree::getNumLeaves(), WHtree::getNumNodes(), WHtree::getRoot(), WHtree::getRootBaseNodes(), WHtree::getSelectedValues(), WHnode::getSize(), WModule::infoLog(), m_groupDendrogram, m_groupDendroManual, m_groupPartition, m_groupRead, m_groupSavedPartition, m_groupTreeProcess, m_groupVisualization, m_groupWrite, m_horizontalLine, m_infoCountDiscarded, m_infoCountLeaves, m_infoCountNodes, m_infoCpcc, m_infoCutValue, m_infoMaxLevel, m_infoPartActive, m_infoPartLeaves, m_infoPartMessage, m_infoPartNumber, m_infoSelectedID, m_infoSelectedSize, m_infoTreeName, m_labelsDirty, m_propBoundaries, m_propBoundaryColor, m_propColorActionList, m_propColorActionSelector, m_propColorSchemeList, m_propColorSchemeSelector, m_propConditionSelectionsList, m_propConditionSelector, m_propDendroPlotByLevel, m_propDendroSideList, m_propDendroSideSelector, m_propDiscardedColor, m_propDistanceGap, m_propFlatLimit, m_propInactiveColor, m_propKeepBases, m_propLabelInfoSelector, m_propLabelList, m_propPartDistanceValue, m_propPartExcludeLeaves, m_propPartHlevelValue, m_propPartitionSelectionList, m_propPartitionSelector, m_propPartNumClusters, m_propPartRelativeValue, m_propPartSearchDepthValue, m_propPartSizeValue, m_propPreloadPartitionNr, m_propProcessSelectionsList, m_propProcessSelector, m_propPrunedNumber, m_propPrunedSeed, m_propPruneJoinSize, m_propPruneSizeRatio, m_propSafeSize, m_propShowCubeMesh, m_propShowDendrogram, m_propShowDiscarded, m_propShowLabels, m_propSourceCluster, m_propSubselectedCluster, m_propTriangleLeaves, m_selectionClusters, m_selectionColors, m_selectionColorsBackup, m_selectionLeaves, m_tree, m_treeDirty, m_treeDisplayColors, m_treeZoomRoot, WHnode::printAllData(), and WHtree::sortBySize().

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initTexture()

void WMHierchClustDisplay::initTexture ( )
private

creates a texture, assigning the colouring of the current partition to the respective seed voxels in the displayed anatomy texture.

(makes the partitioning visivle in the slide view (usually T1 )

Definition at line 810 of file WMHierchClustDisplay.cpp.

References WDataHandler::getDefaultSubject(), WKernel::getRunningKernel(), WKernel::getSelectionManager(), WModule::infoLog(), m_grid, WModule::m_progress, m_texture, and m_textureLabels.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initTreeData()

void WMHierchClustDisplay::initTreeData ( )
private

initializes properties depending on the specific tree structure loaded

Definition at line 603 of file WMHierchClustDisplay.cpp.

References WHtree::convert2grid(), WMarchingLegoAlgorithm::genSurfaceOneValue(), WHtree::getCoordinates4node(), WHtree::getDiscarded(), WHtree::getNumNodes(), WModule::infoLog(), initializeColorsSize(), m_clusterVoxels, m_cubeMesh, m_discardedMesh, m_discardedVoxels, m_grid, WModule::m_progress, m_tree, m_treeDisplayColors, and updateOutput2().

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initWidgets()

void WMHierchClustDisplay::initWidgets ( )
private

inits the graphical widgets in the 3d scene

Definition at line 398 of file WMHierchClustDisplay.cpp.

References WKernel::getGraphicsEngine(), WKernel::getRunningKernel(), WModule::m_active, m_camera, m_dendrogramNode, WModule::m_localPath, m_meshNode, m_moduleNode, m_oldViewHeight, m_oldViewWidth, m_shader, m_wm, and updateWidgets().

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadTree()

bool WMHierchClustDisplay::loadTree ( boost::filesystem::path  treeFile)
private

loads the tree file into the tree object

Parameters
treeFilethe tree file path
Returns
true if the tree was successfully loaded, false otherwise

◆ moduleMain()

void WMHierchClustDisplay::moduleMain ( )
protectedvirtual

Entry point after loading the module. Runs in separate thread.

Implements WModule.

Definition at line 850 of file WMHierchClustDisplay.cpp.

References WConditionSet::add(), addPartitions(), WHtree::clearPartitions(), clusterSelection(), WHtreeProcesser::collapseTreeLinear(), colorAction(), dendrogramClick(), dendrogramClickRight(), WHtreeProcesser::flattenSelection(), WHnode::getDistLevel(), WKernel::getGraphicsEngine(), WHnode::getHLevel(), WHnode::getID(), WHtree::getName(), WHtree::getNode(), WHtree::getNumLeaves(), WHtree::getNumNodes(), WHtree::getRoot(), WKernel::getRunningKernel(), WHnode::getSize(), WModule::infoLog(), initProperties(), initTexture(), initTreeData(), initWidgets(), WModule::m_active, m_anatomy, m_grid, m_groupDendroManual, m_horizontalLine, m_infoCutValue, m_infoPartActive, m_infoPartLeaves, m_infoPartMessage, m_infoPartNumber, m_input, m_labelsDirty, m_moduleNode, WModule::m_moduleState, WModule::m_progress, m_propAddPartTrigger, m_propBoundaries, m_propBoundaryColor, m_propClearPartsTrigger, m_propColorActionTrigger, m_propColorSchemeSelector, m_propConditionSelectionsList, m_propConditionSelector, m_propDendroOffsetX, m_propDendroOffsetY, m_propDendroPlotByLevel, m_propDendroSideSelector, m_propDendroSizeX, m_propDendroSizeY, m_propDendroZoomIn, m_propDendroZoomOut, m_propDiscardedColor, m_propDistanceGap, m_propDoPartition, m_propDoProcessing, m_propFlatLimit, m_propInactiveColor, m_propKeepBases, m_propLabelInfoSelector, m_propPartDistanceValue, m_propPartHlevelValue, m_propPartitionSelector, m_propPartitionsTrigger, m_propPartNumClusters, m_propPartRelativeValue, m_propPartRoot, m_propPartSearchDepthValue, m_propPartSizeValue, m_propPreloadPartitionNr, m_propProcessSelector, m_propPrunedNumber, m_propPrunedSeed, m_propPruneJoinSize, m_propPruneSizeRatio, m_propReadFilename, m_propReadTreeTrigger, m_propRecolorPartTrigger, m_propSafeSize, m_propShowCubeMesh, m_propShowDendrogram, m_propShowDiscarded, m_propShowLabels, m_propSourceCluster, m_propSubselectedCluster, m_propSubselectedcolor, m_propTriangleLeaves, m_propTriggerChange, m_propWriteTreeFilename, m_propWriteTreeTrigger, m_selectionClusters, m_selectionColors, WThreadedRunner::m_shutdownFlag, m_tree, m_treeDirty, m_treeZoomRoot, WHtreeProcesser::pruneRandom(), WHtreeProcesser::pruneSelection(), WHtreeProcesser::pruneTree(), WPVBaseTypes::PV_TRIGGER_READY, WPVBaseTypes::PV_TRIGGER_TRIGGERED, WHtree::readTree(), WModule::ready(), recolorPartitions(), renderCubeMesh(), WConditionSet::setResetable(), string_utils::toString(), updateColors(), updateOutput2(), updateSelection(), WConditionSet::wait(), writePartition(), and WHtree::writeTree().

+ Here is the call graph for this function:

◆ properties()

void WMHierchClustDisplay::properties ( )
protectedvirtual

Initialize the properties for this module.

Reimplemented from WModule.

Definition at line 156 of file WMHierchClustDisplay.cpp.

References WPropertyHelper::PC_SELECTONLYONE::addTo(), m_groupDendrogram, m_groupDendroManual, m_groupInfoMessage, m_groupInfoPartition, m_groupInfoSelected, m_groupInfoTree, m_groupPartition, m_groupRead, m_groupSavedPartition, m_groupTreeProcess, m_groupVisualization, m_groupWrite, m_infoCountDiscarded, m_infoCountLeaves, m_infoCountNodes, m_infoCpcc, m_infoCutValue, m_infoMaxLevel, m_infoPartActive, m_infoPartLeaves, m_infoPartMessage, m_infoPartNumber, WModule::m_infoProperties, m_infoSelectedDistance, m_infoSelectedID, m_infoSelectedSize, m_infoTreeName, m_propAddPartTrigger, m_propBoundaries, m_propBoundaryColor, m_propClearPartsTrigger, m_propColorActionList, m_propColorActionSelector, m_propColorActionTrigger, m_propColorSchemeList, m_propColorSchemeSelector, m_propConditionSelectionsList, m_propConditionSelector, m_propDendroOffsetX, m_propDendroOffsetY, m_propDendroPlotByLevel, m_propDendroSideList, m_propDendroSideSelector, m_propDendroSizeX, m_propDendroSizeY, m_propDendroZoomIn, m_propDendroZoomOut, m_propDiscardedColor, m_propDistanceGap, m_propDoPartition, m_propDoProcessing, WModule::m_properties, m_propFlatLimit, m_propInactiveColor, m_propKeepBases, m_propLabelInfoSelector, m_propLabelList, m_propPartDistanceValue, m_propPartExcludeLeaves, m_propPartHlevelValue, m_propPartitionFile, m_propPartitionSelectionList, m_propPartitionSelector, m_propPartitionsTrigger, m_propPartNumClusters, m_propPartRelativeValue, m_propPartRoot, m_propPartSearchDepthValue, m_propPartSizeValue, m_propPreloadPartitionNr, m_propProcessSelectionsList, m_propProcessSelector, m_propPrunedNumber, m_propPrunedSeed, m_propPruneJoinSize, m_propPruneSizeRatio, m_propReadFilename, m_propReadTreeTrigger, m_propRecolorPartTrigger, m_propSafeSize, m_propShowCubeMesh, m_propShowDendrogram, m_propShowDiscarded, m_propShowLabels, m_propSourceCluster, m_propSubselectedCluster, m_propSubselectedcolor, m_propTriangleLeaves, m_propTriggerChange, m_propWriteTreeFilename, m_propWriteTreeTrigger, WModule::properties(), and WPVBaseTypes::PV_TRIGGER_READY.

+ Here is the call graph for this function:

◆ recolorPartitions()

void WMHierchClustDisplay::recolorPartitions ( )
private

recolors added partitions from the tree object with current selection set of colors

Definition at line 2546 of file WMHierchClustDisplay.cpp.

References WHtree::getSelectedColors(), WHtree::getSelectedPartitions(), WHtree::getSelectedValues(), WModule::infoLog(), WHtree::insertPartitions(), m_nodeColorsCustom, m_propRecolorPartTrigger, m_tree, and WPVBaseTypes::PV_TRIGGER_READY.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderCubeMesh()

void WMHierchClustDisplay::renderCubeMesh ( )
private

renders the triangulated seed voxels

Definition at line 1468 of file WMHierchClustDisplay.cpp.

References WHtree::getNumNodes(), m_cubeMesh, m_discardedMesh, m_grid, m_meshNode, WModule::m_progress, m_propBoundaryColor, m_propDiscardedColor, m_propInactiveColor, m_propShowCubeMesh, m_propShowDiscarded, m_selectionColors, m_textureLabels, and m_tree.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateColors()

void WMHierchClustDisplay::updateColors ( )
private

◆ updateOutput2()

void WMHierchClustDisplay::updateOutput2 ( )
private

updates the voxels coordinate output

Definition at line 2155 of file WMHierchClustDisplay.cpp.

References WHtree::getDiscarded(), WHtree::getRoi(), WModule::m_progress, m_propShowDiscarded, and m_tree.

Referenced by initTreeData(), and moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSelection()

void WMHierchClustDisplay::updateSelection ( const std::vector< WColor > &  preloadedColors = std::vector< WColor >())
private

after the active cluster list has changed this function updates the texture, cubeMesh, dendrogram and output

Parameters
preloadedColorsa vector with cluster colors preloaded form the tree file

Definition at line 1925 of file WMHierchClustDisplay.cpp.

References wge::getNthHSVColor(), WModule::infoLog(), m_labelsDirty, m_nodeColorsCustom, WModule::m_progress, m_propColorSchemeSelector, m_selectionClusters, m_selectionColors, m_selectionColorsBackup, m_tree, WHtree::sortBySize(), and updateColors().

Referenced by clusterSelection(), colorAction(), and moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateWidgets()

void WMHierchClustDisplay::updateWidgets ( )
private

◆ widgetClicked()

bool WMHierchClustDisplay::widgetClicked ( )
private

handles mouse clicks into the dendrogram

Returns
true if handled

◆ writePartition()

void WMHierchClustDisplay::writePartition ( )
private

writes partition selection(s) in an ascii file

Definition at line 2192 of file WMHierchClustDisplay.cpp.

References WModule::errorLog(), WHtree::getCoordinates4node(), WHnode::getID(), WHtree::getNode(), WModule::infoLog(), m_propPartitionFile, m_selectionClusters, and m_tree.

Referenced by moduleMain().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_anatomy

std::shared_ptr< WDataSetSingle > WMHierchClustDisplay::m_anatomy
private

This is a pointer to the anatomy dataset the module is currently working on.

Definition at line 331 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and updateColors().

◆ m_camera

osg::Camera* WMHierchClustDisplay::m_camera
private

stores the camera object

Definition at line 318 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and updateWidgets().

◆ m_clusterVoxels

std::vector<std::vector<size_t> > WMHierchClustDisplay::m_clusterVoxels
private

stores the contained seed voxel IDs for each cluster, increases speed for texture drawing

Definition at line 349 of file WMHierchClustDisplay.h.

Referenced by initTreeData(), and updateColors().

◆ m_cubeMesh

std::shared_ptr< WTriangleMesh > WMHierchClustDisplay::m_cubeMesh
private

Cube-like triangulation of the seed voxels.

Definition at line 355 of file WMHierchClustDisplay.h.

Referenced by initTreeData(), and renderCubeMesh().

◆ m_dendrogramGeode

WNonBinDendroGeode* WMHierchClustDisplay::m_dendrogramGeode
private

stores the dendrogram geode

Definition at line 341 of file WMHierchClustDisplay.h.

Referenced by dendrogramClick(), dendrogramClickRight(), and updateWidgets().

◆ m_dendrogramNode

osg::ref_ptr< WGEGroupNode > WMHierchClustDisplay::m_dendrogramNode
private

Pointer to the dendrogram group node.

Definition at line 323 of file WMHierchClustDisplay.h.

Referenced by initWidgets().

◆ m_discardedMesh

std::shared_ptr< WTriangleMesh > WMHierchClustDisplay::m_discardedMesh
private

Cube-like triangulation of the discarded voxels.

Definition at line 356 of file WMHierchClustDisplay.h.

Referenced by initTreeData(), and renderCubeMesh().

◆ m_discardedVoxels

std::vector<size_t> WMHierchClustDisplay::m_discardedVoxels
private

stores the contained seed voxel IDs for discarded elements

Definition at line 350 of file WMHierchClustDisplay.h.

Referenced by initTreeData(), and updateColors().

◆ m_grid

std::shared_ptr< WGridRegular3D > WMHierchClustDisplay::m_grid
private

stores a pointer to the grid we use;

Definition at line 334 of file WMHierchClustDisplay.h.

Referenced by initTexture(), initTreeData(), moduleMain(), renderCubeMesh(), and updateColors().

◆ m_groupDendrogram

WPropGroup WMHierchClustDisplay::m_groupDendrogram
private

grouping the dendrogram manipulation properties

Definition at line 390 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupDendroManual

WPropGroup WMHierchClustDisplay::m_groupDendroManual
private

grouping the dendrogram manual resizing properties

Definition at line 398 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_groupInfoMessage

WPropGroup WMHierchClustDisplay::m_groupInfoMessage
private

grouping the message info

Definition at line 383 of file WMHierchClustDisplay.h.

Referenced by properties().

◆ m_groupInfoPartition

WPropGroup WMHierchClustDisplay::m_groupInfoPartition
private

grouping the partition info

Definition at line 369 of file WMHierchClustDisplay.h.

Referenced by properties().

◆ m_groupInfoSelected

WPropGroup WMHierchClustDisplay::m_groupInfoSelected
private

grouping the selected info

Definition at line 364 of file WMHierchClustDisplay.h.

Referenced by properties().

◆ m_groupInfoTree

WPropGroup WMHierchClustDisplay::m_groupInfoTree
private

grouping the tree info

Definition at line 375 of file WMHierchClustDisplay.h.

Referenced by properties().

◆ m_groupPartition

WPropGroup WMHierchClustDisplay::m_groupPartition
private

grouping the different selection methods

Definition at line 404 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupRead

WPropGroup WMHierchClustDisplay::m_groupRead
private

grouping the tree loading

Definition at line 386 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupSavedPartition

WPropGroup WMHierchClustDisplay::m_groupSavedPartition
private

grouping the partition options

Definition at line 454 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupTreeProcess

WPropGroup WMHierchClustDisplay::m_groupTreeProcess
private

grouping the different tree processing methods

Definition at line 439 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupVisualization

WPropGroup WMHierchClustDisplay::m_groupVisualization
private

grouping the different visualization options

Definition at line 421 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_groupWrite

WPropGroup WMHierchClustDisplay::m_groupWrite
private

grouping the tree writing

Definition at line 459 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_horizontalLine

float WMHierchClustDisplay::m_horizontalLine
private

to draw a horizontal line when theres distance partition cutting

Definition at line 342 of file WMHierchClustDisplay.h.

Referenced by addPartitions(), clusterSelection(), initProperties(), moduleMain(), and updateWidgets().

◆ m_infoCountDiscarded

WPropInt WMHierchClustDisplay::m_infoCountDiscarded
private

Info property: number of discarded voxels.

Definition at line 379 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoCountLeaves

WPropInt WMHierchClustDisplay::m_infoCountLeaves
private

Info property: number of leaves.

Definition at line 377 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoCountNodes

WPropInt WMHierchClustDisplay::m_infoCountNodes
private

Info property: number of nodes.

Definition at line 378 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoCpcc

WPropDouble WMHierchClustDisplay::m_infoCpcc
private

Info property: cpcc value.

Definition at line 381 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoCutValue

WPropDouble WMHierchClustDisplay::m_infoCutValue
private

Info property: cut value for current partition.

Definition at line 373 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_infoMaxLevel

WPropInt WMHierchClustDisplay::m_infoMaxLevel
private

Info property: maximum hierarchical level.

Definition at line 380 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoPartActive

WPropInt WMHierchClustDisplay::m_infoPartActive
private

Info property: active clusters in current partition.

Definition at line 371 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_infoPartLeaves

WPropInt WMHierchClustDisplay::m_infoPartLeaves
private

Info property: leaf clusters in current partition.

Definition at line 372 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_infoPartMessage

WPropString WMHierchClustDisplay::m_infoPartMessage
private

Info property: partition output message.

Definition at line 384 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_infoPartNumber

WPropInt WMHierchClustDisplay::m_infoPartNumber
private

Info property: clusters in current partition.

Definition at line 370 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_infoSelectedDistance

WPropInt WMHierchClustDisplay::m_infoSelectedDistance
private

Info property: clusters in current partition.

Definition at line 367 of file WMHierchClustDisplay.h.

Referenced by properties().

◆ m_infoSelectedID

WPropInt WMHierchClustDisplay::m_infoSelectedID
private

Info property: clusters in current partition.

Definition at line 365 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoSelectedSize

WPropInt WMHierchClustDisplay::m_infoSelectedSize
private

Info property: clusters in current partition.

Definition at line 366 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_infoTreeName

WPropString WMHierchClustDisplay::m_infoTreeName
private

Info property: current tree name.

Definition at line 376 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_input

std::shared_ptr< WModuleInputData< WDataSetSingle > > WMHierchClustDisplay::m_input
private

An input connector that accepts order 1 datasets.

Definition at line 311 of file WMHierchClustDisplay.h.

Referenced by connectors(), and moduleMain().

◆ m_labelsDirty

bool WMHierchClustDisplay::m_labelsDirty
private

true if the labels need redrawing

Definition at line 338 of file WMHierchClustDisplay.h.

Referenced by colorAction(), dendrogramClickRight(), initProperties(), moduleMain(), updateSelection(), and updateWidgets().

◆ m_meshNode

osg::ref_ptr< WGEGroupNode > WMHierchClustDisplay::m_meshNode
private

Pointer to the cube mesh group node.

Definition at line 324 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and renderCubeMesh().

◆ m_moduleNode

osg::ref_ptr< WGEGroupNode > WMHierchClustDisplay::m_moduleNode
private

Pointer to the modules group node.

Definition at line 322 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and moduleMain().

◆ m_nodeColorsCustom

std::vector< WColor > WMHierchClustDisplay::m_nodeColorsCustom
private

stores preset color for every tree node, so clusters keep same color through different selection

Definition at line 344 of file WMHierchClustDisplay.h.

Referenced by assignColorHierch(), colorAction(), colorBranchCustom(), initializeColorsHdist(), initializeColorsSize(), recolorPartitions(), and updateSelection().

◆ m_oldViewHeight

int WMHierchClustDisplay::m_oldViewHeight
private

stores the old viewport resolution height to check whether a resize happened

Definition at line 319 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and updateWidgets().

◆ m_oldViewWidth

int WMHierchClustDisplay::m_oldViewWidth
private

stores the old viewport resolution width to check whether a resize happened

Definition at line 320 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and updateWidgets().

◆ m_outData

std::shared_ptr< WDataSetVector > WMHierchClustDisplay::m_outData
private

This is a pointer to the current output1.

Definition at line 314 of file WMHierchClustDisplay.h.

◆ m_outData2

std::shared_ptr< WDataSetScalar > WMHierchClustDisplay::m_outData2
private

This is a pointer to the current output2.

Definition at line 315 of file WMHierchClustDisplay.h.

◆ m_output

std::shared_ptr< WModuleOutputData< WDataSetVector > > WMHierchClustDisplay::m_output
private

An output connector for the output scalar dsataset.

Definition at line 312 of file WMHierchClustDisplay.h.

Referenced by connectors().

◆ m_output2

std::shared_ptr< WModuleOutputData< WDataSetScalar > > WMHierchClustDisplay::m_output2
private

An output connector for the output coordinate vector.

Definition at line 313 of file WMHierchClustDisplay.h.

Referenced by connectors().

◆ m_propAddPartTrigger

WPropTrigger WMHierchClustDisplay::m_propAddPartTrigger
private

This property triggers the inclusion in the tree of the current partition.

Definition at line 455 of file WMHierchClustDisplay.h.

Referenced by addPartitions(), moduleMain(), and properties().

◆ m_propBoundaries

WPropBool WMHierchClustDisplay::m_propBoundaries
private

visualize only parcel boundaries

Definition at line 434 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateColors().

◆ m_propBoundaryColor

WPropColor WMHierchClustDisplay::m_propBoundaryColor
private

color for cluster boundaries

Definition at line 436 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), and updateColors().

◆ m_propClearPartsTrigger

WPropTrigger WMHierchClustDisplay::m_propClearPartsTrigger
private

This property triggers the clearing of current partitions in the tree.

Definition at line 457 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propCoarseRatio

WPropInt WMHierchClustDisplay::m_propCoarseRatio
private

ratio of decimation

Definition at line 451 of file WMHierchClustDisplay.h.

◆ m_propColorActionList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propColorActionList
private

List of color schemes.

Definition at line 426 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_propColorActionSelector

WPropSelection WMHierchClustDisplay::m_propColorActionSelector
private

selection of color schemes

Definition at line 427 of file WMHierchClustDisplay.h.

Referenced by colorAction(), initProperties(), and properties().

◆ m_propColorActionTrigger

WPropTrigger WMHierchClustDisplay::m_propColorActionTrigger
private

shuffle current colors

Definition at line 428 of file WMHierchClustDisplay.h.

Referenced by colorAction(), moduleMain(), and properties().

◆ m_propColorSchemeList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propColorSchemeList
private

List of color schemes.

Definition at line 424 of file WMHierchClustDisplay.h.

Referenced by colorAction(), initProperties(), and properties().

◆ m_propColorSchemeSelector

WPropSelection WMHierchClustDisplay::m_propColorSchemeSelector
private

selection of color schemes

Definition at line 425 of file WMHierchClustDisplay.h.

Referenced by colorAction(), initProperties(), moduleMain(), properties(), and updateSelection().

◆ m_propConditionSelectionsList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propConditionSelectionsList
private

A list of condition selection methods.

Definition at line 410 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propConditionSelector

WPropSelection WMHierchClustDisplay::m_propConditionSelector
private

Selection condition for clusters.

Definition at line 409 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propDendroOffsetX

WPropInt WMHierchClustDisplay::m_propDendroOffsetX
private

controls the horizontal origin of the dendrogram

Definition at line 401 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), properties(), and updateWidgets().

◆ m_propDendroOffsetY

WPropInt WMHierchClustDisplay::m_propDendroOffsetY
private

controls the vertical origin of the dendrogram

Definition at line 402 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), properties(), and updateWidgets().

◆ m_propDendroPlotByLevel

WPropBool WMHierchClustDisplay::m_propDendroPlotByLevel
private

controls plotting the height of a join (1 plots the tree by hierarchical level, 0 by cluster distance)

Definition at line 392 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propDendroSideList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propDendroSideList
private

A list of dendrogram positions.

Definition at line 396 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_propDendroSideSelector

WPropSelection WMHierchClustDisplay::m_propDendroSideSelector
private

Selection property for dendrogram positions.

Definition at line 397 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propDendroSizeX

WPropInt WMHierchClustDisplay::m_propDendroSizeX
private

controls the width of the dendrogram

Definition at line 399 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), properties(), and updateWidgets().

◆ m_propDendroSizeY

WPropInt WMHierchClustDisplay::m_propDendroSizeY
private

controls the height of the dendrogram

Definition at line 400 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), properties(), and updateWidgets().

◆ m_propDendroZoomIn

WPropTrigger WMHierchClustDisplay::m_propDendroZoomIn
private

zoom into tree, sets m_treeZoom true and m_zoomRoot to the currently selected cluster

Definition at line 394 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propDendroZoomOut

WPropTrigger WMHierchClustDisplay::m_propDendroZoomOut
private

zooms out, m_treeZoom = false, dendrogram shows the whole tree

Definition at line 395 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propDiscardedColor

WPropColor WMHierchClustDisplay::m_propDiscardedColor
private

color for discarded voxels

Definition at line 435 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), and updateColors().

◆ m_propDistanceGap

WPropDouble WMHierchClustDisplay::m_propDistanceGap
private

distance gap for prunin process

Definition at line 445 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propDoPartition

WPropTrigger WMHierchClustDisplay::m_propDoPartition
private

triggers the cluster selection update

Definition at line 419 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), moduleMain(), and properties().

◆ m_propDoProcessing

WPropTrigger WMHierchClustDisplay::m_propDoProcessing
private

triggers the tree processing

Definition at line 452 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propFlatLimit

WPropDouble WMHierchClustDisplay::m_propFlatLimit
private

distance gap for prunin process

Definition at line 446 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propInactiveColor

WPropColor WMHierchClustDisplay::m_propInactiveColor
private

color for inactive mesh voxels

Definition at line 437 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and renderCubeMesh().

◆ m_propKeepBases

WPropBool WMHierchClustDisplay::m_propKeepBases
private

dont debinarize basenodes

Definition at line 447 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propLabelInfoSelector

WPropSelection WMHierchClustDisplay::m_propLabelInfoSelector
private

selection of info on button labels

Definition at line 431 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propLabelList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propLabelList
private

List of label contents.

Definition at line 430 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_propPartDistanceValue

WPropDouble WMHierchClustDisplay::m_propPartDistanceValue
private

distance cut value for the desired partition

Definition at line 415 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartExcludeLeaves

WPropBool WMHierchClustDisplay::m_propPartExcludeLeaves
private

defines if base nodes will be subdivided or not

Definition at line 418 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), and properties().

◆ m_propPartHlevelValue

WPropInt WMHierchClustDisplay::m_propPartHlevelValue
private

hierarchical level cut value for the desired partition

Definition at line 416 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartitionFile

WPropFilename WMHierchClustDisplay::m_propPartitionFile
private

The partition file will be written to this location.

Definition at line 462 of file WMHierchClustDisplay.h.

Referenced by properties(), and writePartition().

◆ m_propPartitionSelectionList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propPartitionSelectionList
private

A list of cluster selection methods.

Definition at line 408 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_propPartitionSelector

WPropSelection WMHierchClustDisplay::m_propPartitionSelector
private

Selection property for clusters.

Definition at line 407 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartitionsTrigger

WPropTrigger WMHierchClustDisplay::m_propPartitionsTrigger
private

This property triggers the actual writing of the partition file.

Definition at line 463 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propPartNumClusters

WPropInt WMHierchClustDisplay::m_propPartNumClusters
private

number of clusters of the desired partition

Definition at line 411 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartRelativeValue

WPropDouble WMHierchClustDisplay::m_propPartRelativeValue
private

Relative size cut value for the desired partition.

Definition at line 414 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartRoot

WPropTrigger WMHierchClustDisplay::m_propPartRoot
private

triggers the selection of root cluster

Definition at line 405 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propPartSearchDepthValue

WPropInt WMHierchClustDisplay::m_propPartSearchDepthValue
private

depth of search for optimized partitioning

Definition at line 413 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPartSizeValue

WPropInt WMHierchClustDisplay::m_propPartSizeValue
private

size cut value for the desired partition

Definition at line 412 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propPreloadPartitionNr

WPropInt WMHierchClustDisplay::m_propPreloadPartitionNr
private

predefined partition to load

Definition at line 417 of file WMHierchClustDisplay.h.

Referenced by addPartitions(), clusterSelection(), initProperties(), moduleMain(), and properties().

◆ m_propProcessSelectionsList

std::shared_ptr< WItemSelection > WMHierchClustDisplay::m_propProcessSelectionsList
private

A list of cluster selection methods.

Definition at line 441 of file WMHierchClustDisplay.h.

Referenced by initProperties(), and properties().

◆ m_propProcessSelector

WPropSelection WMHierchClustDisplay::m_propProcessSelector
private

Selection property for processing.

Definition at line 440 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propPrunedNumber

WPropInt WMHierchClustDisplay::m_propPrunedNumber
private

number of leaves to be pruned by random pruning

Definition at line 449 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propPrunedSeed

WPropInt WMHierchClustDisplay::m_propPrunedSeed
private

rng seed for random pruning

Definition at line 450 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propPruneJoinSize

WPropInt WMHierchClustDisplay::m_propPruneJoinSize
private

join size for pruning process

Definition at line 443 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propPruneSizeRatio

WPropDouble WMHierchClustDisplay::m_propPruneSizeRatio
private

size ratio for pruning process

Definition at line 444 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propReadFilename

WPropFilename WMHierchClustDisplay::m_propReadFilename
private

The tree file will be loaded form this directory.

Definition at line 387 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propReadTreeTrigger

WPropTrigger WMHierchClustDisplay::m_propReadTreeTrigger
private

This property triggers the actual reading of the tree file.

Definition at line 388 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propRecolorPartTrigger

WPropTrigger WMHierchClustDisplay::m_propRecolorPartTrigger
private

This property triggers the recoloring partition of the current partitions.

Definition at line 456 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), properties(), and recolorPartitions().

◆ m_propSafeSize

WPropInt WMHierchClustDisplay::m_propSafeSize
private

maximum size to be pruned

Definition at line 442 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and properties().

◆ m_propShowCubeMesh

WPropBool WMHierchClustDisplay::m_propShowCubeMesh
private

visualize voxel cube triangulation

Definition at line 433 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and renderCubeMesh().

◆ m_propShowDendrogram

WPropBool WMHierchClustDisplay::m_propShowDendrogram
private

controls the display of the dendrogram overlay

Definition at line 391 of file WMHierchClustDisplay.h.

Referenced by dendrogramClick(), dendrogramClickRight(), initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propShowDiscarded

WPropBool WMHierchClustDisplay::m_propShowDiscarded
private

visualize also discarded voxels

Definition at line 432 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), updateColors(), and updateOutput2().

◆ m_propShowLabels

WPropBool WMHierchClustDisplay::m_propShowLabels
private

show info labels for selected clusters

Definition at line 429 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propSmoothSize

WPropInt WMHierchClustDisplay::m_propSmoothSize
private

desired cluster size fro smoothing

Definition at line 448 of file WMHierchClustDisplay.h.

◆ m_propSourceCluster

WPropInt WMHierchClustDisplay::m_propSourceCluster
private

the current subtree root cluster

Definition at line 406 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), dendrogramClick(), initProperties(), moduleMain(), and properties().

◆ m_propSubselectedCluster

WPropInt WMHierchClustDisplay::m_propSubselectedCluster
private

the currently selected cluster

Definition at line 422 of file WMHierchClustDisplay.h.

Referenced by colorAction(), dendrogramClickRight(), initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propSubselectedcolor

WPropColor WMHierchClustDisplay::m_propSubselectedcolor
private

color for subselected cluster

Definition at line 423 of file WMHierchClustDisplay.h.

Referenced by colorAction(), dendrogramClickRight(), moduleMain(), properties(), and updateWidgets().

◆ m_propTriangleLeaves

WPropBool WMHierchClustDisplay::m_propTriangleLeaves
private

specifies a minimum size for a cluster so that too small cluster won't get an own color

Definition at line 393 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().

◆ m_propTriggerChange

std::shared_ptr< WCondition > WMHierchClustDisplay::m_propTriggerChange
private

A condition used to notify about changes in several properties.

Definition at line 362 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propWriteTreeFilename

WPropFilename WMHierchClustDisplay::m_propWriteTreeFilename
private

The tree file will be written to this location.

Definition at line 460 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_propWriteTreeTrigger

WPropTrigger WMHierchClustDisplay::m_propWriteTreeTrigger
private

This property triggers the actual writing of the tree file.

Definition at line 461 of file WMHierchClustDisplay.h.

Referenced by moduleMain(), and properties().

◆ m_selectionClusters

std::vector<size_t> WMHierchClustDisplay::m_selectionClusters
private

stores the currently activated clusters

Definition at line 352 of file WMHierchClustDisplay.h.

Referenced by addPartitions(), clusterSelection(), dendrogramClickRight(), initProperties(), moduleMain(), updateSelection(), and writePartition().

◆ m_selectionColors

std::map< size_t, WColor > WMHierchClustDisplay::m_selectionColors
private

stores a the current colors each cluster should be displayed, given the current selection

Definition at line 346 of file WMHierchClustDisplay.h.

Referenced by colorAction(), dendrogramClickRight(), initProperties(), moduleMain(), renderCubeMesh(), updateColors(), updateSelection(), and updateWidgets().

◆ m_selectionColorsBackup

std::map< size_t, WColor > WMHierchClustDisplay::m_selectionColorsBackup
private

stores a backup of m_selectionColors

Definition at line 347 of file WMHierchClustDisplay.h.

Referenced by addPartitions(), colorAction(), dendrogramClickRight(), initProperties(), updateSelection(), and updateWidgets().

◆ m_selectionLabels

std::vector< osg::ref_ptr<WOSGButton> > WMHierchClustDisplay::m_selectionLabels
private

list of buttons for the active cluster selection

Definition at line 358 of file WMHierchClustDisplay.h.

Referenced by updateWidgets().

◆ m_selectionLeaves

std::vector<size_t> WMHierchClustDisplay::m_selectionLeaves
private

stores the leaves output by the selection

Definition at line 353 of file WMHierchClustDisplay.h.

Referenced by clusterSelection(), and initProperties().

◆ m_shader

osg::ref_ptr< WGEShader > WMHierchClustDisplay::m_shader
private

The shader.

Definition at line 329 of file WMHierchClustDisplay.h.

Referenced by initWidgets().

◆ m_texture

osg::ref_ptr<osg::Texture3D> WMHierchClustDisplay::m_texture
private

stores a pointer to the texture we paint in (to overlay to anatomy)

Definition at line 332 of file WMHierchClustDisplay.h.

Referenced by initTexture(), and updateColors().

◆ m_textureLabels

std::vector< size_t > WMHierchClustDisplay::m_textureLabels
private

label vector for texture creation

Definition at line 333 of file WMHierchClustDisplay.h.

Referenced by initTexture(), renderCubeMesh(), and updateColors().

◆ m_tree

WHtree WMHierchClustDisplay::m_tree
private

◆ m_treeDirty

bool WMHierchClustDisplay::m_treeDirty
private

true if the dendrogram needs redrawing

Definition at line 337 of file WMHierchClustDisplay.h.

Referenced by initProperties(), moduleMain(), and updateWidgets().

◆ m_treeDisplayColors

std::vector< WColor > WMHierchClustDisplay::m_treeDisplayColors
private

stores a the current colors each tree node should be displayed, given the current selection

Definition at line 345 of file WMHierchClustDisplay.h.

Referenced by colorBranch(), initProperties(), initTreeData(), and updateWidgets().

◆ m_treeZoomRoot

size_t WMHierchClustDisplay::m_treeZoomRoot
private

control variable for tree zoom mode

Definition at line 339 of file WMHierchClustDisplay.h.

Referenced by dendrogramClick(), dendrogramClickRight(), initProperties(), moduleMain(), and updateWidgets().

◆ m_wm

osgWidget::WindowManager* WMHierchClustDisplay::m_wm
private

stores a pointer to the window manager used for osg wdgets and overlay stuff

Definition at line 317 of file WMHierchClustDisplay.h.

Referenced by initWidgets(), and updateWidgets().


The documentation for this class was generated from the following files: