}
this->SetScale(1.0);
- vtkFloatingPointType aMRadius = myRadius*myMagnification;
+ double aMRadius = myRadius*myMagnification;
Init(myHeight,aMRadius*myCursorSize);
if(myClamp > 0.0f){
- vtkFloatingPointType aPoint1[3] = {0.0, 0.0, 0.0};
+ double aPoint1[3] = {0.0, 0.0, 0.0};
ren->SetDisplayPoint(aPoint1);
ren->DisplayToWorld();
ren->GetWorldPoint(aPoint1);
- vtkFloatingPointType aPoint2[3] = {0.0, myClamp, 0.0};
+ double aPoint2[3] = {0.0, myClamp, 0.0};
ren->SetDisplayPoint(aPoint2);
ren->DisplayToWorld();
ren->GetWorldPoint(aPoint2);
- vtkFloatingPointType aWorldClamp =
+ double aWorldClamp =
(aPoint2[0] - aPoint1[0])*(aPoint2[0] - aPoint1[0]) +
(aPoint2[1] - aPoint1[1])*(aPoint2[1] - aPoint1[1]) +
(aPoint2[2] - aPoint1[2])*(aPoint2[2] - aPoint1[2]);
aWorldClamp = sqrt(aWorldClamp);
- vtkFloatingPointType aMDiameter = 2.0 * aMRadius;
- vtkFloatingPointType aCoeff = aWorldClamp / aMDiameter;
+ double aMDiameter = 2.0 * aMRadius;
+ double aCoeff = aWorldClamp / aMDiameter;
if(aCoeff < 1.0){
this->SetScale(aCoeff);
//----------------------------------------------------------------------------
void
VISU_CursorPyramid
-::SetPreferences(vtkFloatingPointType theHeight,
- vtkFloatingPointType theCursorSize)
+::SetPreferences(double theHeight,
+ double theCursorSize)
{
Init(theHeight, theCursorSize, myRadius, myMagnification, myClamp, GetPosition(), GetProperty()->GetColor());
}
//----------------------------------------------------------------------------
void
VISU_CursorPyramid
-::Init(vtkFloatingPointType theHeight,
- vtkFloatingPointType theCursorSize,
- vtkFloatingPointType theRadius,
- vtkFloatingPointType theMagnification,
- vtkFloatingPointType theClamp,
- vtkFloatingPointType thePos[3],
- vtkFloatingPointType theColor[3])
+::Init(double theHeight,
+ double theCursorSize,
+ double theRadius,
+ double theMagnification,
+ double theClamp,
+ double thePos[3],
+ double theColor[3])
{
Init(theHeight,theRadius*theMagnification*theCursorSize);
SetPosition(thePos[0],thePos[1],thePos[2]);
void
VISU_CursorPyramid
-::Init(vtkFloatingPointType theHeight,
- vtkFloatingPointType theRadius)
+::Init(double theHeight,
+ double theRadius)
{
for(int i = 0; i < myNbCones; ++i){
vtkConeSource* aSource = mySources[i].GetPointer();
aSource->SetAngle(20.0);
}
- vtkFloatingPointType aDisplacement = -0.5*theHeight - theRadius;
+ double aDisplacement = -0.5*theHeight - theRadius;
// X
mySources[0]->SetDirection(1.0, 0.0, 0.0);