Commit a30bd81f by Alexander Wiebel

[STYLE] fixed capitalization of property names

parent 44f00dde
......@@ -255,27 +255,27 @@ void WMFiberDisplay::activate()
void WMFiberDisplay::properties()
{
m_customColoring = m_properties->addProperty( "Custom Coloring", "Switches the coloring between custom and predefined.", false );
m_coloring = m_properties->addProperty( "Global or Local Coloring", "Switches the coloring between global and local.", true );
m_customColoring = m_properties->addProperty( "Custom coloring", "Switches the coloring between custom and predefined.", false );
m_coloring = m_properties->addProperty( "Global or local coloring", "Switches the coloring between global and local.", true );
m_useTubesProp = m_properties->addProperty( "Use Tubes", "Draw fiber tracts as fake tubes.", false );
m_useTextureProp = m_properties->addProperty( "Use Texture", "Texture fibers with the texture on top of the list.", false );
m_tubeThickness = m_properties->addProperty( "Tube Thickness", "Adjusts the thickness of the tubes.", 50.,
m_useTubesProp = m_properties->addProperty( "Use tubes", "Draw fiber tracts as fake tubes.", false );
m_useTextureProp = m_properties->addProperty( "Use texture", "Texture fibers with the texture on top of the list.", false );
m_tubeThickness = m_properties->addProperty( "Tube thickness", "Adjusts the thickness of the tubes.", 50.,
boost::bind( &WMFiberDisplay::adjustTubes, this ) );
m_tubeThickness->setMin( 0 );
m_tubeThickness->setMax( 300 );
m_save = m_properties->addProperty( "Save", "saves the selected fiber bundles.", false, boost::bind( &WMFiberDisplay::saveSelected, this ) );
m_saveFileName = m_properties->addProperty( "File Name", "no description yet", WPathHelper::getAppPath() );
m_updateOC = m_properties->addProperty( "Update Output Conn.",
m_save = m_properties->addProperty( "Save", "Saves the selected fiber bundles.", false, boost::bind( &WMFiberDisplay::saveSelected, this ) );
m_saveFileName = m_properties->addProperty( "File name", "", WPathHelper::getAppPath() );
m_updateOC = m_properties->addProperty( "Update output conn.",
"Updates the output connector with the currently selected fibers",
WPVBaseTypes::PV_TRIGGER_READY,
boost::bind( &WMFiberDisplay::updateOutput, this ) );
m_cullBoxGroup = m_properties->addPropertyGroup( "Box Culling", "Properties only related to the box culling." );
m_activateCullBox = m_cullBoxGroup->addProperty( "Activate", "activates the cull box", false );
m_showCullBox = m_cullBoxGroup->addProperty( "Show Cull Box", "shows/hides the cull box", false );
m_insideCullBox = m_cullBoxGroup->addProperty( "Inside - Outside", "show fibers inside or outside the cull box", true );
m_activateCullBox = m_cullBoxGroup->addProperty( "Activate", "Activates the cull box", false );
m_showCullBox = m_cullBoxGroup->addProperty( "Show cull box", "Shows/hides the cull box", false );
m_insideCullBox = m_cullBoxGroup->addProperty( "Inside - outside", "Show fibers inside or outside the cull box", true );
}
void WMFiberDisplay::updateRenderModes()
......
......@@ -57,7 +57,7 @@ void WMClusterParamDisplay::connectors()
void WMClusterParamDisplay::properties()
{
m_isoValue = m_properties->addProperty( "Iso Value", "", 0.01 );
m_isoValue = m_properties->addProperty( "Iso value", "", 0.01 );
}
void WMClusterParamDisplay::moduleMain()
......@@ -79,8 +79,8 @@ void WMClusterParamDisplay::moduleMain()
if( m_isoValue->changed() )
{
m_isoSurface->getProperties()->getProperty( "Iso Value" )->toPropDouble()->set( m_isoValue->get() );
m_clusterSlicer->getProperties()->getProperty( "Iso Value" )->toPropDouble()->set( m_isoValue->get( true ) );
m_isoSurface->getProperties()->getProperty( "Iso value" )->toPropDouble()->set( m_isoValue->get() );
m_clusterSlicer->getProperties()->getProperty( "Iso value" )->toPropDouble()->set( m_isoValue->get( true ) );
}
}
}
......
......@@ -75,7 +75,7 @@ void WMClusterSlicer::connectors()
void WMClusterSlicer::properties()
{
m_drawISOVoxels = m_properties->addProperty( "Show or Hide ISO Voxels", "En/Disables to draw the voxels withing a given ISOSurface.", true );
m_isoValue = m_properties->addProperty( "Iso Value", "", 0.01 );
m_isoValue = m_properties->addProperty( "Iso value", "", 0.01 );
}
void WMClusterSlicer::moduleMain()
......
......@@ -81,18 +81,18 @@ void WMDistanceMapIsosurface::moduleMain()
// now wait for it to be ready
m_marchingCubesModule->isReady().wait();
boost::shared_ptr< WProperties > mcProps = m_marchingCubesModule->getProperties();
m_isoValueProp = mcProps->getProperty( "Iso Value" )->toPropDouble();
m_isoValueProp = mcProps->getProperty( "Iso value" )->toPropDouble();
m_isoValueProp->set( 0.2 );
m_isoValueProp->setMin( 0.0 );
m_isoValueProp->setMax( 1.0 );
m_properties->addProperty( m_isoValueProp );
m_useTextureProp = mcProps->getProperty( "Use Texture" )->toPropBool();
m_useTextureProp = mcProps->getProperty( "Use texture" )->toPropBool();
m_useTextureProp->set( true );
m_properties->addProperty( m_useTextureProp );
m_surfaceColorProp = mcProps->getProperty( "Surface Color" )->toPropColor();
m_surfaceColorProp = mcProps->getProperty( "Surface color" )->toPropColor();
m_properties->addProperty( m_surfaceColorProp );
m_opacityProp = mcProps->getProperty( "Opacity %" )->toPropInt();
......
......@@ -148,12 +148,12 @@ void WMEffectiveConnectivityCluster::moduleMain()
// set some props
boost::shared_ptr< WProperties > props = m_fiberSelection->getProperties();
props->getProperty( "VOI1 Threshold" )->toPropDouble()->set( 50.0 );
props->getProperty( "VOI2 Threshold" )->toPropDouble()->set( 50.0 );
props->getProperty( "Cut Fibers" )->toPropBool()->set( true );
m_properties->addProperty( props->getProperty( "Cut Fibers" ) );
props->getProperty( "Prefer Shortest Path" )->toPropBool()->set( false );
m_properties->addProperty( props->getProperty( "Prefer Shortest Path" ) );
props->getProperty( "VOI1 threshold" )->toPropDouble()->set( 50.0 );
props->getProperty( "VOI2 threshold" )->toPropDouble()->set( 50.0 );
props->getProperty( "Cut fibers" )->toPropBool()->set( true );
m_properties->addProperty( props->getProperty( "Cut fibers" ) );
props->getProperty( "Prefer shortest path" )->toPropBool()->set( false );
m_properties->addProperty( props->getProperty( "Prefer shortest path" ) );
// as this module needs the centerline / longest line -> subscribe to the output connector DATA_CHANGE signal
m_fiberSelection->getOutputConnector( "cluster" )->subscribeSignal( DATA_CHANGED,
......@@ -182,13 +182,13 @@ void WMEffectiveConnectivityCluster::moduleMain()
props->getProperty( "Lighting" )->toPropBool()->set( false );
// set longest line based parameterization
props->getProperty( "Voxels per Unit" )->toPropInt()->set( 2 );
props->getProperty( "Voxels per unit" )->toPropInt()->set( 2 );
WItemSelector::IndexList idx;
idx.push_back( 1 );
props->getProperty( "Parameterization" )->toPropSelection()->set( props->getProperty( "Parameterization"
)->toPropSelection()->get().newSelector( idx ) );
m_properties->addProperty( props->getProperty( "Voxels per Unit" ) );
m_properties->addProperty( props->getProperty( "Voxels per unit" ) );
//////////////////////////////////////////////////////////////////////
// Gauss Filter the voxel output
......@@ -226,18 +226,18 @@ void WMEffectiveConnectivityCluster::moduleMain()
props = m_animation->getProperties();
props->getProperty( "Isovalue" )->toPropInt()->set( 32 );
m_properties->addProperty( props->getProperty( "Isovalue" ) );
props->getProperty( "Step Count" )->toPropInt()->set( 500 );
m_properties->addProperty( props->getProperty( "Step Count" ) );
props->getProperty( "Iso Color" )->toPropColor()->set( WColor( 0.0, 0.5, 1.0, 1.0 ) );
m_properties->addProperty( props->getProperty( "Iso Color" ) );
props->getProperty( "Step count" )->toPropInt()->set( 500 );
m_properties->addProperty( props->getProperty( "Step count" ) );
props->getProperty( "Iso color" )->toPropColor()->set( WColor( 0.0, 0.5, 1.0, 1.0 ) );
m_properties->addProperty( props->getProperty( "Iso color" ) );
props->getProperty( "Opacity %" )->toPropInt()->set( 100 );
m_properties->addProperty( props->getProperty( "Opacity %" ) );
m_properties->addProperty( props->getProperty( "Saturation %" ) );
m_properties->addProperty( props->getProperty( "Beam1 Size" ) );
m_properties->addProperty( props->getProperty( "Beam2 Size" ) );
m_properties->addProperty( props->getProperty( "Beam1 Speed" ) );
m_properties->addProperty( props->getProperty( "Beam2 Speed" ) );
m_properties->addProperty( props->getProperty( "Parameter Scale" ) );
m_properties->addProperty( props->getProperty( "Beam1 size" ) );
m_properties->addProperty( props->getProperty( "Beam2 size" ) );
m_properties->addProperty( props->getProperty( "Beam1 speed" ) );
m_properties->addProperty( props->getProperty( "Beam2 speed" ) );
m_properties->addProperty( props->getProperty( "Parameter scale" ) );
//////////////////////////////////////////////////////////////////////////////////
......@@ -403,7 +403,7 @@ void WMEffectiveConnectivityCluster::properties()
m_voi1Name = m_properties->addProperty( "Name of VOI1", "The name of the VOI1.", std::string( "" ), m_propCondition );
m_voi2Name = m_properties->addProperty( "Name of VOI2", "The name of the VOI2.", std::string( "" ), m_propCondition );
m_labelCharacterSize = m_properties->addProperty( "Font Size", "The size of the label fonts.", 20, m_propCondition );
m_labelCharacterSize = m_properties->addProperty( "Font size", "The size of the label fonts.", 20, m_propCondition );
}
void WMEffectiveConnectivityCluster::activate()
......
......@@ -132,13 +132,13 @@ void WMFiberSelection::properties()
m_propCondition = boost::shared_ptr< WCondition >( new WCondition() );
// the threshold for testing whether a fiber vertex is inside a volume of interest.
m_voi1Threshold = m_properties->addProperty( "VOI1 Threshold", "The threshold uses for determining whether a fiber is inside the first VOI"
m_voi1Threshold = m_properties->addProperty( "VOI1 threshold", "The threshold uses for determining whether a fiber is inside the first VOI"
"dataset or not.", 5.0, m_propCondition );
m_voi2Threshold = m_properties->addProperty( "VOI2 Threshold", "The threshold uses for determining whether a fiber is inside the second VOI"
m_voi2Threshold = m_properties->addProperty( "VOI2 threshold", "The threshold uses for determining whether a fiber is inside the second VOI"
"dataset or not.", 5.0, m_propCondition );
m_cutFibers = m_properties->addProperty( "Cut Fibers", "Cut the fibers after they gone through both VOI.", true, m_propCondition );
m_cutFibers = m_properties->addProperty( "Cut fibers", "Cut the fibers after they gone through both VOI.", true, m_propCondition );
m_preferShortestPath = m_properties->addProperty( "Prefer Shortest Path", "Determines whether the fibers should be cut on the entry and "
m_preferShortestPath = m_properties->addProperty( "Prefer shortest path", "Determines whether the fibers should be cut on the entry and "
"exit of a VOI. This should prevent the fibers from going deep into the VOI's.", false, m_propCondition );
}
......
......@@ -96,7 +96,7 @@ void WMHistogramEqualization::properties()
m_clamp = m_clamping->addProperty( "Clamp values?", "Values below the specified threshold are clamped to min and max respectively.",
true, m_propCondition );
m_histogramResolution = m_clamping->addProperty( "Histogram Resolution", "How many buckets should be used for the initial data histogram?",
m_histogramResolution = m_clamping->addProperty( "Histogram resolution", "How many buckets should be used for the initial data histogram?",
10000, m_propCondition );
m_histogramResolution->setMin( 10 );
m_histogramResolution->setMax( 1000000 );
......@@ -109,10 +109,10 @@ void WMHistogramEqualization::properties()
// equalizing related props
m_equalizing = m_properties->addPropertyGroup( "Equalizing", "Equalizing values in the dataset." );
m_equalize = m_equalizing->addProperty( "Equalize Histogram", "If true, the dataset's cumulative histogram gets linearized.",
m_equalize = m_equalizing->addProperty( "Equalize histogram", "If true, the dataset's cumulative histogram gets linearized.",
true, m_propCondition );
m_cdfResolution = m_equalizing->addProperty( "CDF Histogram Resolution",
m_cdfResolution = m_equalizing->addProperty( "CDF histogram resolution",
"How many buckets should be used for the data histogram used for equalizing?",
10000, m_propCondition );
m_cdfResolution->setMin( 10 );
......
......@@ -101,10 +101,10 @@ void WMIsosurfaceRaytracer::properties()
m_isoValue = m_properties->addProperty( "Isovalue", "The isovalue used whenever the isosurface Mode is turned on.",
50 );
m_isoColor = m_properties->addProperty( "Iso Color", "The color to blend the isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_isoColor = m_properties->addProperty( "Iso color", "The color to blend the isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_propCondition );
m_stepCount = m_properties->addProperty( "Step Count", "The number of steps to walk along the ray during raycasting. A low value "
m_stepCount = m_properties->addProperty( "Step count", "The number of steps to walk along the ray during raycasting. A low value "
"may cause artifacts whilst a high value slows down rendering.", 250 );
m_stepCount->setMin( 1 );
m_stepCount->setMax( 1000 );
......@@ -113,10 +113,10 @@ void WMIsosurfaceRaytracer::properties()
// Lighting
m_shadingSelections = boost::shared_ptr< WItemSelection >( new WItemSelection() );
m_shadingSelections->addItem( "Emphasize Cortex", "Emphasize the cortex. Inner parts are not that well lighten." );
m_shadingSelections->addItem( "Depth Only", "Only show the depth of the surface along the ray." );
m_shadingSelections->addItem( "Emphasize cortex", "Emphasize the cortex. Inner parts are not that well lighten." );
m_shadingSelections->addItem( "Depth only", "Only show the depth of the surface along the ray." );
m_shadingSelections->addItem( "Phong", "Phong lighting. Slower but more realistic lighting" );
m_shadingSelections->addItem( "Phong + Depth", "Phong lighting in combination with depth cueing." );
m_shadingSelections->addItem( "Phong + depth", "Phong lighting in combination with depth cueing." );
m_shadingAlgo = m_properties->addProperty( "Shading", "The shading algorithm.", m_shadingSelections->getSelectorFirst(), m_propCondition );
WPropertyHelper::PC_SELECTONLYONE::addTo( m_shadingAlgo );
......
......@@ -196,7 +196,7 @@ void WMMarchingCubes::properties()
m_nbVertices = m_infoProperties->addProperty( "Vertices", "The number of vertices in the produced mesh.", 0 );
m_nbVertices->setMax( std::numeric_limits< int >::max() );
m_isoValueProp = m_properties->addProperty( "Iso Value", "The surface will show the area that has this value.", 100., m_recompute );
m_isoValueProp = m_properties->addProperty( "Iso value", "The surface will show the area that has this value.", 100., m_recompute );
m_isoValueProp->setMin( wlimits::MIN_DOUBLE );
m_isoValueProp->setMax( wlimits::MAX_DOUBLE );
{
......@@ -212,16 +212,16 @@ void WMMarchingCubes::properties()
m_opacityProp->setMin( 0 );
m_opacityProp->setMax( 100 );
m_useTextureProp = m_properties->addProperty( "Use Texture", "Use texturing of the surface?", false );
m_useTextureProp = m_properties->addProperty( "Use texture", "Use texturing of the surface?", false );
m_surfaceColor = m_properties->addProperty( "Surface Color", "Description.", WColor( 0.5, 0.5, 0.5, 1.0 ) );
m_surfaceColor = m_properties->addProperty( "Surface color", "Description.", WColor( 0.5, 0.5, 0.5, 1.0 ) );
m_savePropGroup = m_properties->addPropertyGroup( "Save Surface", "" );
m_saveTriggerProp = m_savePropGroup->addProperty( "Do Save", "Press!",
m_saveTriggerProp = m_savePropGroup->addProperty( "Do save", "Press!",
WPVBaseTypes::PV_TRIGGER_READY );
m_saveTriggerProp->getCondition()->subscribeSignal( boost::bind( &WMMarchingCubes::save, this ) );
m_meshFile = m_savePropGroup->addProperty( "Mesh File", "", WPathHelper::getAppPath() );
m_meshFile = m_savePropGroup->addProperty( "Mesh file", "", WPathHelper::getAppPath() );
}
void WMMarchingCubes::generateSurfacePre( double isoValue )
......
......@@ -82,8 +82,8 @@ public:
std::string fileName = wiotools::tempFileName();
mc.m_properties = boost::shared_ptr< WProperties >( new WProperties( "Properties", "Module's properties" ) );
mc.m_savePropGroup = mc.m_properties->addPropertyGroup( "Save Surface", "" );
mc.m_meshFile = mc.m_savePropGroup->addProperty( "Mesh File", "", boost::filesystem::path( fileName.c_str() ) );
mc.m_saveTriggerProp = mc.m_savePropGroup->addProperty( "Do Save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
mc.m_meshFile = mc.m_savePropGroup->addProperty( "Mesh file", "", boost::filesystem::path( fileName.c_str() ) );
mc.m_saveTriggerProp = mc.m_savePropGroup->addProperty( "Do save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
bool result = mc.save();
TS_ASSERT_EQUALS( result, false ); // should return false as we did not have any vertices or triangles.
......@@ -112,8 +112,8 @@ public:
std::string fileName = wiotools::tempFileName();
mc.m_properties = boost::shared_ptr< WProperties >( new WProperties( "Properties", "Module's properties" ) );
mc.m_savePropGroup = mc.m_properties->addPropertyGroup( "Save Surface", "" );
mc.m_meshFile = mc.m_savePropGroup->addProperty( "Mesh File", "", boost::filesystem::path( fileName.c_str() ) );
mc.m_saveTriggerProp = mc.m_savePropGroup->addProperty( "Do Save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
mc.m_meshFile = mc.m_savePropGroup->addProperty( "Mesh file", "", boost::filesystem::path( fileName.c_str() ) );
mc.m_saveTriggerProp = mc.m_savePropGroup->addProperty( "Do save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
mc.save();
......
......@@ -97,23 +97,23 @@ void WMProbTractDisplay::properties()
// Initialize the properties
m_propCondition = boost::shared_ptr< WCondition >( new WCondition() );
m_isoSurface = m_properties->addProperty( "Isosurface Mode", "If enabled, the Volume Renderer will render an isosurface and ignores the "
m_isoSurface = m_properties->addProperty( "Isosurface mode", "If enabled, the Volume Renderer will render an isosurface and ignores the "
"transfer function.", true );
m_isoValue0 = m_properties->addProperty( "Isovalue 0", "The isovalue used whenever the isosurface Mode is turned on.", 50 );
m_isoValue1 = m_properties->addProperty( "Isovalue 1", "The isovalue used whenever the isosurface Mode is turned on.", 50 );
m_isoValue2 = m_properties->addProperty( "Isovalue 2", "The isovalue used whenever the isosurface Mode is turned on.", 50 );
m_isoValue3 = m_properties->addProperty( "Isovalue 3", "The isovalue used whenever the isosurface Mode is turned on.", 50 );
m_isoColor0 = m_properties->addProperty( "Iso Color 0", "The color to blend the 0'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_isoColor0 = m_properties->addProperty( "Iso color 0", "The color to blend the 0'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_propCondition );
m_isoColor1 = m_properties->addProperty( "Iso Color 1", "The color to blend the 1'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_isoColor1 = m_properties->addProperty( "Iso color 1", "The color to blend the 1'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_propCondition );
m_isoColor2 = m_properties->addProperty( "Iso Color 2", "The color to blend the 2'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_isoColor2 = m_properties->addProperty( "Iso color 2", "The color to blend the 2'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_propCondition );
m_isoColor3 = m_properties->addProperty( "Iso Color 3", "The color to blend the 3'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_isoColor3 = m_properties->addProperty( "Iso color 3", "The color to blend the 3'th isosurface with.", WColor( 1.0, 1.0, 1.0, 1.0 ),
m_propCondition );
m_stepCount = m_properties->addProperty( "Step Count", "The number of steps to walk along the ray during raycasting. A low value "
m_stepCount = m_properties->addProperty( "Step count", "The number of steps to walk along the ray during raycasting. A low value "
"may cause artifacts whilst a high value slows down rendering.", 250 );
m_stepCount->setMin( 1 );
m_stepCount->setMax( 1000 );
......@@ -123,7 +123,7 @@ void WMProbTractDisplay::properties()
m_alpha2 = m_properties->addProperty( "Opacity % 2", "The opacity in %. Transparency = 100 - Opacity for the 2'th isosurface", 100 );
m_alpha3 = m_properties->addProperty( "Opacity % 3", "The opacity in %. Transparency = 100 - Opacity for the 3'th isosurface", 100 );
m_useSimpleDepthColoring = m_properties->addProperty( "Use Depth Cueing", "Enable it to have simple depth dependent coloring only.", false );
m_useSimpleDepthColoring = m_properties->addProperty( "Use depth cueing", "Enable it to have simple depth dependent coloring only.", false );
}
void WMProbTractDisplay::moduleMain()
......
......@@ -156,15 +156,15 @@ void WMSplineSurface::properties()
m_opacityProp->setMin( 0 );
m_opacityProp->setMax( 100 );
m_useTextureProp = m_properties->addProperty( "Use Texture", "Use texturing of the surface?", false );
m_useTextureProp = m_properties->addProperty( "Use texture", "Use texturing of the surface?", false );
m_surfaceColor = m_properties->addProperty( "Surface Color", "Description.", WColor( 0.5, 0.5, 0.5, 1.0 ) );
m_surfaceColor = m_properties->addProperty( "Surface color", "Description.", WColor( 0.5, 0.5, 0.5, 1.0 ) );
m_savePropGroup = m_properties->addPropertyGroup( "Save Surface", "" );
m_saveTriggerProp = m_savePropGroup->addProperty( "Do Save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
m_saveTriggerProp = m_savePropGroup->addProperty( "Do save", "Press!", WPVBaseTypes::PV_TRIGGER_READY );
m_saveTriggerProp->getCondition()->subscribeSignal( boost::bind( &WMSplineSurface::save, this ) );
m_meshFile = m_savePropGroup->addProperty( "Mesh File", "", WPathHelper::getAppPath() );
m_meshFile = m_savePropGroup->addProperty( "Mesh file", "", WPathHelper::getAppPath() );
}
void WMSplineSurface::renderMesh()
......
......@@ -94,9 +94,9 @@ void WMSuperquadricGlyphs::properties()
m_propCondition = boost::shared_ptr< WCondition >( new WCondition() );
// The slice positions. These get update externally
m_xPos = m_properties->addProperty( "Sagittal Position", "Slice X position.", 80, m_propCondition );
m_yPos = m_properties->addProperty( "Coronal Position", "Slice Y position.", 100, m_propCondition );
m_zPos = m_properties->addProperty( "Axial Position", "Slice Z position.", 80, m_propCondition );
m_xPos = m_properties->addProperty( "Sagittal position", "Slice X position.", 80, m_propCondition );
m_yPos = m_properties->addProperty( "Coronal position", "Slice Y position.", 100, m_propCondition );
m_zPos = m_properties->addProperty( "Axial position", "Slice Z position.", 80, m_propCondition );
m_xPos->setMin( 0 );
m_xPos->setMax( 159 );
m_yPos->setMin( 0 );
......@@ -105,16 +105,16 @@ void WMSuperquadricGlyphs::properties()
m_zPos->setMax( 159 );
// Flags denoting whether the glyphs should be shown on the specific slice
m_showonX = m_properties->addProperty( "Show Sagittal", "Show vectors on sagittal slice.", true, m_propCondition );
m_showonY = m_properties->addProperty( "Show Coronal", "Show vectors on coronal slice.", true, m_propCondition );
m_showonZ = m_properties->addProperty( "Show Axial", "Show vectors on axial slice.", true, m_propCondition );
m_showonX = m_properties->addProperty( "Show sagittal", "Show vectors on sagittal slice.", true, m_propCondition );
m_showonY = m_properties->addProperty( "Show coronal", "Show vectors on coronal slice.", true, m_propCondition );
m_showonZ = m_properties->addProperty( "Show axial", "Show vectors on axial slice.", true, m_propCondition );
// Thresholding for filtering glyphs
m_evThreshold = m_properties->addProperty( "Eigenvalue Threshold",
m_evThreshold = m_properties->addProperty( "Eigenvalue threshold",
"Clip Glyphs whose smallest eigenvalue is below the given threshold.", 0.01 );
m_evThreshold->setMin( 0.0 );
m_evThreshold->setMax( 1.0 );
m_faThreshold = m_properties->addProperty( "FA Threshold",
m_faThreshold = m_properties->addProperty( "FA threshold",
"Clip Glyphs whose fractional anisotropy is below the given threshold.", 0.01 );
m_faThreshold->setMin( 0.0 );
m_faThreshold->setMax( 1.0 );
......@@ -127,7 +127,7 @@ void WMSuperquadricGlyphs::properties()
m_scaling->setMin( 0.0 );
m_scaling->setMax( 2.0 );
m_unifyEV = m_properties->addProperty( "Unify Eigenvalues", "Unify the eigenvalues?.", false );
m_unifyEV = m_properties->addProperty( "Unify eigenvalues", "Unify the eigenvalues?.", false );
}
inline void WMSuperquadricGlyphs::addGlyph( osg::Vec3 position, osg::ref_ptr< osg::Vec3Array > vertices, osg::ref_ptr< osg::Vec3Array > orientation )
......
......@@ -110,25 +110,25 @@ void WMSurfaceParameterAnimator::properties()
m_isoValue = m_properties->addProperty( "Isovalue", "The Isovalue used whenever the Isosurface Mode is turned on.",
50 );
m_stepCount = m_properties->addProperty( "Step Count", "The number of steps to walk along the ray during raycasting. A low value"
m_stepCount = m_properties->addProperty( "Step count", "The number of steps to walk along the ray during raycasting. A low value"
"may cause artifacts whilst a high value slows down rendering.", 250 );
m_stepCount->setMin( 1 );
m_stepCount->setMax( 1000 );
m_alpha = m_properties->addProperty( "Opacity %", "The opacity in %. Transparency = 100 - Opacity.", 100 );
m_isoColor = m_properties->addProperty( "Iso Color", "The color to blend the isosurface with.", WColor( 0.0, 0.0, 0.0, 1.0 ),
m_isoColor = m_properties->addProperty( "Iso color", "The color to blend the isosurface with.", WColor( 0.0, 0.0, 0.0, 1.0 ),
m_propCondition );
m_saturation = m_properties->addProperty( "Saturation %", "The saturation in %.", 100 );
m_size1 = m_properties->addProperty( "Beam1 Size", "The relative size of the first beam. A value of 0 gets mapped to the "
m_size1 = m_properties->addProperty( "Beam1 size", "The relative size of the first beam. A value of 0 gets mapped to the "
"smallest size, whilst 100 gets mapped to the largest. This is typically "
"one third of the size of the voxelized surface.", 10 );
m_size2 = m_properties->addProperty( "Beam2 Size", "The relative size of the second beam. A value of 0 gets mapped to the "
m_size2 = m_properties->addProperty( "Beam2 size", "The relative size of the second beam. A value of 0 gets mapped to the "
"smallest size, whilst 100 gets mapped to the largest. This is typically "
"one third of the size of the voxelized surface.", 50 );
m_speed1 = m_properties->addProperty( "Beam1 Speed", "The relative speed of the beam. This speed relates to the clock used.", 25 );
m_speed2 = m_properties->addProperty( "Beam2 Speed", "The relative speed of the beam. This speed relates to the clock used.", 25 );
m_parameterScale = m_properties->addProperty( "Parameter Scale", "Scaling the parameter space on the fly creates consistently sized and fast "
m_speed1 = m_properties->addProperty( "Beam1 speed", "The relative speed of the beam. This speed relates to the clock used.", 25 );
m_speed2 = m_properties->addProperty( "Beam2 speed", "The relative speed of the beam. This speed relates to the clock used.", 25 );
m_parameterScale = m_properties->addProperty( "Parameter scale", "Scaling the parameter space on the fly creates consistently sized and fast "
"beams over multiple WMSurfaceParameterAnimator instances.", 1.0 );
}
......
......@@ -97,15 +97,15 @@ void WMVectorPlot::properties()
"used to place them. Thus their "
"representation is tangential to the surface.",
false );
m_coloringMode = m_properties->addProperty( "Direction Coloring",
m_coloringMode = m_properties->addProperty( "Direction coloring",
"Draw each vector in a color indicating its direction. ", false );
m_aColor = m_properties->addProperty( "Color",
"This color is used if direction coloring is deactivated.",
WColor( 1.0, 0.0, 0.0, 1.0 ) );
m_showonX = m_properties->addProperty( "Show Sagittal", "Show vectors on sagittal slice.", true );
m_showonY = m_properties->addProperty( "Show Coronal", "Show vectors on coronal slice.", true );
m_showonZ = m_properties->addProperty( "Show Axial", "Show vectors on axial slice.", true );
m_showonX = m_properties->addProperty( "Show sagittal", "Show vectors on sagittal slice.", true );
m_showonY = m_properties->addProperty( "Show coronal", "Show vectors on coronal slice.", true );
m_showonZ = m_properties->addProperty( "Show axial", "Show vectors on axial slice.", true );
m_xPos->setMin( 0 );
m_xPos->setMax( 160 );
......
......@@ -153,7 +153,7 @@ void WMVoxelizer::properties()
m_drawVoxels = m_properties->addProperty( "Display Voxels", "Enable/Disable drawing of marked voxels.", true, m_fullUpdate );
m_rasterAlgo = m_properties->addProperty( "Raster Algo", "Specifies the algorithm you may want to use for voxelization.",
std::string( "WBresenham" ), m_fullUpdate );
m_voxelsPerUnit = m_properties->addProperty( "Voxels per Unit", "Specified the number of voxels per unit in the coordinate system. This "
m_voxelsPerUnit = m_properties->addProperty( "Voxels per unit", "Specified the number of voxels per unit in the coordinate system. This "
"is useful to increase the resolution of the grid", 1, m_fullUpdate );
m_parameterAlgo = m_properties->addProperty( "Parameterization", "Select the parameterization algorithm.",
m_paramAlgoSelections->getSelectorFirst(), m_fullUpdate );
......
......@@ -132,7 +132,7 @@ void WMWriteNIfTI::properties()
{
m_filename = m_properties->addProperty( "Filename", "Filename where to write the NIfTI file to.",
WPathHelper::getAppPath() );
m_saveTriggerProp = m_properties->addProperty( "Do Save", "Press!",
m_saveTriggerProp = m_properties->addProperty( "Do save", "Press!",
WPVBaseTypes::PV_TRIGGER_READY );
m_saveTriggerProp->getCondition()->subscribeSignal( boost::bind( &WMWriteNIfTI::writeToFile, this ) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment