OpenWalnut
1.5.0dev
|
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>
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< WModule > | factory () 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 InputConnectorList & | getInputConnectors () const |
Gives back input connectors. More... | |
std::shared_ptr< WModuleInputConnector > | getInputConnector (std::string name) |
Finds the named connector for the module. More... | |
std::shared_ptr< WModuleInputConnector > | findInputConnector (std::string name) |
Finds the named connector for the module. More... | |
const OutputConnectorList & | getOutputConnectors () const |
Gives back output connectors. More... | |
std::shared_ptr< WModuleOutputConnector > | getOutputConnector (std::string name) |
Finds the named connector for the module. More... | |
std::shared_ptr< WModuleOutputConnector > | findOutputConnector (std::string name) |
Finds the named connector for the module. More... | |
std::shared_ptr< WModuleConnector > | getConnector (std::string name) |
Finds the named connector for the module. More... | |
std::shared_ptr< WModuleConnector > | findConnector (std::string name) |
Finds the named connector for the module. More... | |
std::shared_ptr< WProperties > | getProperties () const |
Return a pointer to the properties object of the module. More... | |
std::shared_ptr< WProperties > | getInformationProperties () const |
Return a pointer to the information properties object of the module. More... | |
const WBoolFlag & | isInitialized () const |
Determines whether the module instance is properly initialized. More... | |
const WBoolFlag & | isUseable () const |
Checks whether the module instance is ready to be used. More... | |
const WBoolFlag & | isAssociated () const |
Checks whether this module is associated with an container. More... | |
const WBoolFlag & | isReady () const |
Checks whether this module is ready. More... | |
const WBoolFlag & | isReadyOrCrashed () const |
This is the logical or of isReady and isCrashed. More... | |
const WBoolFlag & | isRunning () 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< WModuleContainer > | getAssociatedContainer () 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< WProgressCombiner > | getRootProgressCombiner () |
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 WRequirement * | checkRequirements () 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 WBoolFlag & | isCrashed () 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< WDataSetVector > | m_outData |
This is a pointer to the current output1. More... | |
std::shared_ptr< WDataSetScalar > | m_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< WGEGroupNode > | m_moduleNode |
Pointer to the modules group node. More... | |
osg::ref_ptr< WGEGroupNode > | m_dendrogramNode |
Pointer to the dendrogram group node. More... | |
osg::ref_ptr< WGEGroupNode > | m_meshNode |
Pointer to the cube mesh group node. More... | |
osg::ref_ptr< WGEShader > | m_shader |
The shader. More... | |
std::shared_ptr< WDataSetSingle > | m_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< WGridRegular3D > | m_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... | |
WNonBinDendroGeode * | m_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< WTriangleMesh > | m_cubeMesh |
Cube-like triangulation of the seed voxels. More... | |
std::shared_ptr< WTriangleMesh > | m_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< WCondition > | m_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< WItemSelection > | m_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< WItemSelection > | m_propPartitionSelectionList |
A list of cluster selection methods. More... | |
WPropSelection | m_propConditionSelector |
Selection condition for clusters. More... | |
std::shared_ptr< WItemSelection > | m_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< WItemSelection > | m_propColorSchemeList |
List of color schemes. More... | |
WPropSelection | m_propColorSchemeSelector |
selection of color schemes More... | |
std::shared_ptr< WItemSelection > | m_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< WItemSelection > | m_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< WItemSelection > | m_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< WModule > | SPtr |
Shared pointer to a WModule. More... | |
typedef std::shared_ptr< const WModule > | ConstSPtr |
Shared pointer to a const WModule. More... | |
Public Types inherited from WThreadedRunner | |
typedef std::shared_ptr< WThreadedRunner > | SPtr |
Abbreviation to a shared_ptr to this type. More... | |
typedef std::shared_ptr< const WThreadedRunner > | ConstSPtr |
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< WProperties > | m_properties |
The property object for the module. More... | |
std::shared_ptr< WProperties > | m_infoProperties |
The property object for the module containing only module whose purpose is "PV_PURPOSE_INFORMNATION". More... | |
std::shared_ptr< WProgressCombiner > | m_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< WProgress > | m_readyProgress |
Progress indicator for the "ready" state. More... | |
WConditionSet | m_moduleState |
The internal state of the module. More... | |
std::shared_ptr< WModuleContainer > | m_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... | |
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.
WMHierchClustDisplay::WMHierchClustDisplay | ( | ) |
Constructor.
Definition at line 105 of file WMHierchClustDisplay.cpp.
Referenced by factory().
|
virtual |
Destructor.
Definition at line 114 of file WMHierchClustDisplay.cpp.
|
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().
|
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.
thisID | ID of the reference node |
thisColor | color 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().
|
private |
manages cluster selection action response
Definition at line 2221 of file WMHierchClustDisplay.cpp.
References WHnode::getHLevel(), WHtree::getNode(), wge::getNthHSVColor(), WHtree::getSelectedColors(), WHtree::getSelectedPartitions(), WHtree::getSelectedValues(), WHnode::getSize(), WModule::infoLog(), m_horizontalLine, m_infoCutValue, m_infoPartActive, m_infoPartLeaves, m_infoPartMessage, m_infoPartNumber, WModule::m_progress, m_propConditionSelector, m_propDoPartition, m_propPartDistanceValue, m_propPartExcludeLeaves, m_propPartHlevelValue, m_propPartitionSelector, m_propPartNumClusters, m_propPartRelativeValue, m_propPartSearchDepthValue, m_propPartSizeValue, m_propPreloadPartitionNr, m_propSourceCluster, m_selectionClusters, m_selectionLeaves, m_tree, WHtreePartition::partitionClassic(), WHtreePartition::partitionOptimized(), WHtreePartition::partitionSharp(), WPVBaseTypes::PV_TRIGGER_READY, string_utils::toString(), and updateSelection().
Referenced by moduleMain().
|
private |
manages action after the trigger of the color section has been pressed
Definition at line 2411 of file WMHierchClustDisplay.cpp.
References assignColorHierch(), initializeColorsHdist(), initializeColorsSize(), m_labelsDirty, m_nodeColorsCustom, m_propColorActionSelector, m_propColorActionTrigger, m_propColorSchemeList, m_propColorSchemeSelector, m_propSubselectedCluster, m_propSubselectedcolor, m_selectionColors, m_selectionColorsBackup, WPVBaseTypes::PV_TRIGGER_READY, updateColors(), and updateSelection().
Referenced by moduleMain().
|
private |
recursive function that fills the display colors for a whole branch with a selected color
root | cluster to work on |
color | color 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().
|
private |
recursive function that fills the display colors for a whole branch with a custom color from a scheme previously generated
root | cluster to work on |
color | color to paint |
Definition at line 1903 of file WMHierchClustDisplay.cpp.
References WHnode::getChildren(), WHnode::getHLevel(), WHtree::getNode(), m_nodeColorsCustom, and m_tree.
|
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.
|
private |
handles clicks into the dendrogram
pos | the mouse position during 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().
|
private |
handles right clicks into the dendrogram
pos | the mouse position during 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().
|
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.
Implements WModule.
Definition at line 119 of file WMHierchClustDisplay.cpp.
References WMHierchClustDisplay().
|
virtual |
Gives back a description of this module.
Implements WPrototyped.
Definition at line 131 of file WMHierchClustDisplay.cpp.
|
virtual |
Gives back the name of this module.
Implements WPrototyped.
Definition at line 125 of file WMHierchClustDisplay.cpp.
|
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
private |
loads the tree file into the tree object
treeFile | the tree file path |
|
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().
|
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.
|
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().
|
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().
|
private |
updates the selection colors
Definition at line 1995 of file WMHierchClustDisplay.cpp.
References colorBranch(), WHnode::getID(), WHtree::getNumNodes(), WHtree::getRoot(), m_anatomy, m_clusterVoxels, m_discardedVoxels, m_grid, WModule::m_progress, m_propBoundaries, m_propBoundaryColor, m_propDiscardedColor, m_propShowDiscarded, m_selectionColors, m_texture, m_textureLabels, and m_tree.
Referenced by colorAction(), dendrogramClickRight(), moduleMain(), updateSelection(), and updateWidgets().
|
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().
|
private |
after the active cluster list has changed this function updates the texture, cubeMesh, dendrogram and output
preloadedColors | a 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().
|
private |
updates the graphical widgets in the 3d scene
Definition at line 1648 of file WMHierchClustDisplay.cpp.
References WHnode::getDistLevel(), WKernel::getGraphicsEngine(), WHnode::getHLevel(), WHnode::getID(), WHtree::getNode(), WKernel::getRunningKernel(), WHnode::getSize(), m_camera, m_dendrogramGeode, m_horizontalLine, m_labelsDirty, m_oldViewHeight, m_oldViewWidth, WModule::m_progress, m_propDendroOffsetX, m_propDendroOffsetY, m_propDendroPlotByLevel, m_propDendroSideSelector, m_propDendroSizeX, m_propDendroSizeY, m_propLabelInfoSelector, m_propShowDendrogram, m_propShowLabels, m_propSubselectedCluster, m_propSubselectedcolor, m_propTriangleLeaves, m_selectionColors, m_selectionColorsBackup, m_selectionLabels, m_tree, m_treeDirty, m_treeDisplayColors, m_treeZoomRoot, m_wm, and updateColors().
Referenced by initWidgets().
|
private |
handles mouse clicks into the dendrogram
|
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().
|
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().
|
private |
stores the camera object
Definition at line 318 of file WMHierchClustDisplay.h.
Referenced by initWidgets(), and updateWidgets().
|
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().
|
private |
Cube-like triangulation of the seed voxels.
Definition at line 355 of file WMHierchClustDisplay.h.
Referenced by initTreeData(), and renderCubeMesh().
|
private |
stores the dendrogram geode
Definition at line 341 of file WMHierchClustDisplay.h.
Referenced by dendrogramClick(), dendrogramClickRight(), and updateWidgets().
|
private |
Pointer to the dendrogram group node.
Definition at line 323 of file WMHierchClustDisplay.h.
Referenced by initWidgets().
|
private |
Cube-like triangulation of the discarded voxels.
Definition at line 356 of file WMHierchClustDisplay.h.
Referenced by initTreeData(), and renderCubeMesh().
|
private |
stores the contained seed voxel IDs for discarded elements
Definition at line 350 of file WMHierchClustDisplay.h.
Referenced by initTreeData(), and updateColors().
|
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().
|
private |
grouping the dendrogram manipulation properties
Definition at line 390 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the dendrogram manual resizing properties
Definition at line 398 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
grouping the message info
Definition at line 383 of file WMHierchClustDisplay.h.
Referenced by properties().
|
private |
grouping the partition info
Definition at line 369 of file WMHierchClustDisplay.h.
Referenced by properties().
|
private |
grouping the selected info
Definition at line 364 of file WMHierchClustDisplay.h.
Referenced by properties().
|
private |
grouping the tree info
Definition at line 375 of file WMHierchClustDisplay.h.
Referenced by properties().
|
private |
grouping the different selection methods
Definition at line 404 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the tree loading
Definition at line 386 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the partition options
Definition at line 454 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the different tree processing methods
Definition at line 439 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the different visualization options
Definition at line 421 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
grouping the tree writing
Definition at line 459 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
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().
|
private |
Info property: number of discarded voxels.
Definition at line 379 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: number of leaves.
Definition at line 377 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: number of nodes.
Definition at line 378 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: cpcc value.
Definition at line 381 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: cut value for current partition.
Definition at line 373 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Info property: maximum hierarchical level.
Definition at line 380 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: active clusters in current partition.
Definition at line 371 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Info property: leaf clusters in current partition.
Definition at line 372 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Info property: partition output message.
Definition at line 384 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Info property: clusters in current partition.
Definition at line 370 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Info property: clusters in current partition.
Definition at line 367 of file WMHierchClustDisplay.h.
Referenced by properties().
|
private |
Info property: clusters in current partition.
Definition at line 365 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: clusters in current partition.
Definition at line 366 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Info property: current tree name.
Definition at line 376 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
An input connector that accepts order 1 datasets.
Definition at line 311 of file WMHierchClustDisplay.h.
Referenced by connectors(), and moduleMain().
|
private |
true if the labels need redrawing
Definition at line 338 of file WMHierchClustDisplay.h.
Referenced by colorAction(), dendrogramClickRight(), initProperties(), moduleMain(), updateSelection(), and updateWidgets().
|
private |
Pointer to the cube mesh group node.
Definition at line 324 of file WMHierchClustDisplay.h.
Referenced by initWidgets(), and renderCubeMesh().
|
private |
Pointer to the modules group node.
Definition at line 322 of file WMHierchClustDisplay.h.
Referenced by initWidgets(), and moduleMain().
|
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().
|
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().
|
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().
|
private |
This is a pointer to the current output1.
Definition at line 314 of file WMHierchClustDisplay.h.
|
private |
This is a pointer to the current output2.
Definition at line 315 of file WMHierchClustDisplay.h.
|
private |
An output connector for the output scalar dsataset.
Definition at line 312 of file WMHierchClustDisplay.h.
Referenced by connectors().
|
private |
An output connector for the output coordinate vector.
Definition at line 313 of file WMHierchClustDisplay.h.
Referenced by connectors().
|
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().
|
private |
visualize only parcel boundaries
Definition at line 434 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and updateColors().
|
private |
color for cluster boundaries
Definition at line 436 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), and updateColors().
|
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().
|
private |
ratio of decimation
Definition at line 451 of file WMHierchClustDisplay.h.
|
private |
List of color schemes.
Definition at line 426 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
selection of color schemes
Definition at line 427 of file WMHierchClustDisplay.h.
Referenced by colorAction(), initProperties(), and properties().
|
private |
shuffle current colors
Definition at line 428 of file WMHierchClustDisplay.h.
Referenced by colorAction(), moduleMain(), and properties().
|
private |
List of color schemes.
Definition at line 424 of file WMHierchClustDisplay.h.
Referenced by colorAction(), initProperties(), and properties().
|
private |
selection of color schemes
Definition at line 425 of file WMHierchClustDisplay.h.
Referenced by colorAction(), initProperties(), moduleMain(), properties(), and updateSelection().
|
private |
A list of condition selection methods.
Definition at line 410 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
Selection condition for clusters.
Definition at line 409 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
controls the horizontal origin of the dendrogram
Definition at line 401 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), properties(), and updateWidgets().
|
private |
controls the vertical origin of the dendrogram
Definition at line 402 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), properties(), and updateWidgets().
|
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().
|
private |
A list of dendrogram positions.
Definition at line 396 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Selection property for dendrogram positions.
Definition at line 397 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().
|
private |
controls the width of the dendrogram
Definition at line 399 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), properties(), and updateWidgets().
|
private |
controls the height of the dendrogram
Definition at line 400 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), properties(), and updateWidgets().
|
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().
|
private |
zooms out, m_treeZoom = false, dendrogram shows the whole tree
Definition at line 395 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
color for discarded voxels
Definition at line 435 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), and updateColors().
|
private |
distance gap for prunin process
Definition at line 445 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
triggers the cluster selection update
Definition at line 419 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), moduleMain(), and properties().
|
private |
triggers the tree processing
Definition at line 452 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
distance gap for prunin process
Definition at line 446 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
color for inactive mesh voxels
Definition at line 437 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and renderCubeMesh().
|
private |
dont debinarize basenodes
Definition at line 447 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
selection of info on button labels
Definition at line 431 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().
|
private |
List of label contents.
Definition at line 430 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
distance cut value for the desired partition
Definition at line 415 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
defines if base nodes will be subdivided or not
Definition at line 418 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), and properties().
|
private |
hierarchical level cut value for the desired partition
Definition at line 416 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
The partition file will be written to this location.
Definition at line 462 of file WMHierchClustDisplay.h.
Referenced by properties(), and writePartition().
|
private |
A list of cluster selection methods.
Definition at line 408 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Selection property for clusters.
Definition at line 407 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
This property triggers the actual writing of the partition file.
Definition at line 463 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
number of clusters of the desired partition
Definition at line 411 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
Relative size cut value for the desired partition.
Definition at line 414 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
triggers the selection of root cluster
Definition at line 405 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
depth of search for optimized partitioning
Definition at line 413 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
size cut value for the desired partition
Definition at line 412 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
predefined partition to load
Definition at line 417 of file WMHierchClustDisplay.h.
Referenced by addPartitions(), clusterSelection(), initProperties(), moduleMain(), and properties().
|
private |
A list of cluster selection methods.
Definition at line 441 of file WMHierchClustDisplay.h.
Referenced by initProperties(), and properties().
|
private |
Selection property for processing.
Definition at line 440 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
number of leaves to be pruned by random pruning
Definition at line 449 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
rng seed for random pruning
Definition at line 450 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
join size for pruning process
Definition at line 443 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
size ratio for pruning process
Definition at line 444 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
The tree file will be loaded form this directory.
Definition at line 387 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
This property triggers the actual reading of the tree file.
Definition at line 388 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
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().
|
private |
maximum size to be pruned
Definition at line 442 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and properties().
|
private |
visualize voxel cube triangulation
Definition at line 433 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and renderCubeMesh().
|
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().
|
private |
visualize also discarded voxels
Definition at line 432 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), renderCubeMesh(), updateColors(), and updateOutput2().
|
private |
show info labels for selected clusters
Definition at line 429 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), properties(), and updateWidgets().
|
private |
desired cluster size fro smoothing
Definition at line 448 of file WMHierchClustDisplay.h.
|
private |
the current subtree root cluster
Definition at line 406 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), dendrogramClick(), initProperties(), moduleMain(), and properties().
|
private |
the currently selected cluster
Definition at line 422 of file WMHierchClustDisplay.h.
Referenced by colorAction(), dendrogramClickRight(), initProperties(), moduleMain(), properties(), and updateWidgets().
|
private |
color for subselected cluster
Definition at line 423 of file WMHierchClustDisplay.h.
Referenced by colorAction(), dendrogramClickRight(), moduleMain(), properties(), and updateWidgets().
|
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().
|
private |
A condition used to notify about changes in several properties.
Definition at line 362 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
The tree file will be written to this location.
Definition at line 460 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
This property triggers the actual writing of the tree file.
Definition at line 461 of file WMHierchClustDisplay.h.
Referenced by moduleMain(), and properties().
|
private |
stores the currently activated clusters
Definition at line 352 of file WMHierchClustDisplay.h.
Referenced by addPartitions(), clusterSelection(), dendrogramClickRight(), initProperties(), moduleMain(), updateSelection(), and writePartition().
|
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().
|
private |
stores a backup of m_selectionColors
Definition at line 347 of file WMHierchClustDisplay.h.
Referenced by addPartitions(), colorAction(), dendrogramClickRight(), initProperties(), updateSelection(), and updateWidgets().
|
private |
list of buttons for the active cluster selection
Definition at line 358 of file WMHierchClustDisplay.h.
Referenced by updateWidgets().
|
private |
stores the leaves output by the selection
Definition at line 353 of file WMHierchClustDisplay.h.
Referenced by clusterSelection(), and initProperties().
|
private |
|
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().
|
private |
label vector for texture creation
Definition at line 333 of file WMHierchClustDisplay.h.
Referenced by initTexture(), renderCubeMesh(), and updateColors().
|
private |
stores the tree object as loaded from file;
Definition at line 336 of file WMHierchClustDisplay.h.
Referenced by addPartitions(), assignColorHierch(), clusterSelection(), colorBranch(), colorBranchCustom(), dendrogramClick(), dendrogramClickRight(), initializeColorsHdist(), initializeColorsSize(), initProperties(), initTreeData(), moduleMain(), recolorPartitions(), renderCubeMesh(), updateColors(), updateOutput2(), updateSelection(), updateWidgets(), and writePartition().
|
private |
true if the dendrogram needs redrawing
Definition at line 337 of file WMHierchClustDisplay.h.
Referenced by initProperties(), moduleMain(), and updateWidgets().
|
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().
|
private |
control variable for tree zoom mode
Definition at line 339 of file WMHierchClustDisplay.h.
Referenced by dendrogramClick(), dendrogramClickRight(), initProperties(), moduleMain(), and updateWidgets().
|
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().