float
GetRadius(vtkIdType theVTKID,
vtkDataArray *theScalarArray,
- VISU_GaussPointsPL* theGaussPointsPL)
+ VISU_GaussPointsPL* theGaussPointsPL,
+ VISU_PickingSettings* thePickingSettings)
{
float aRadius = 0.5;
+ if(thePickingSettings && !thePickingSettings->GetInitial()){
+ aRadius *= thePickingSettings->GetCursorSize();
+ }
if(theGaussPointsPL->GetPSMapper()->GetPointSpriteMode() == 1) // Geometry mode
aRadius *= theGaussPointsPL->GetSize() * theGaussPointsPL->GetAverageCellSize();
else if(theGaussPointsPL->GetBicolor()){
::GetRadius(vtkIdType theVTKID,
vtkDataArray *theScalarArray)
{
- return ::GetRadius(theVTKID,theScalarArray,myDeviceActor->GetPipeLine());
+ return ::GetRadius(theVTKID,theScalarArray,myDeviceActor->GetPipeLine(),myPickingSettings);
}
//----------------------------------------------------------------------------
else
aPipeLine = myInsideDeviceActor->GetPipeLine();
}
- return ::GetRadius(theVTKID,theScalarArray,aPipeLine);
+ return ::GetRadius(theVTKID,theScalarArray,aPipeLine,myPickingSettings);
}
vtkSetMacro( PyramidHeight, float );
vtkGetMacro( PyramidHeight, float );
+ vtkSetMacro( CursorSize, float );
+ vtkGetMacro( CursorSize, float );
+
vtkSetVector3Macro( Color, float );
vtkGetVector3Macro( Color, float );
bool Initial;
float PyramidHeight;
+ float CursorSize;
float PointTolerance;
float Color[3];
float InfoWindowTransparency;