pdmA = vtkSmartPointer<vtkActor2D>::New();
pdmA->SetMapper(pdm);
- pdmA->GetProperty()->SetColor(255,10,212);
+ pdmA->GetProperty()->SetColor(1,0,0);
pdmA->SetVisibility(0);
pdmA->SetPickable(0);
//------------------------------------------------------------------------------
-void vvSlicer::SetCursorColor(int r,int g, int b)
+void vvSlicer::SetCursorColor(double r, double g, double b)
{
pdmA->GetProperty()->SetColor(r,g,b);
}
void SetCursorVisibility(bool s);
bool GetCursorVisibility();
- void SetCursorColor(int r,int g, int b);
+ void SetCursorColor(double r,double g, double b);
void SetCornerAnnotationVisibility(bool s);
bool GetCornerAnnotationVisibility();
#endif
{
mSlicers[slicer]->UpdateCursorPosition();
- mSlicers[slicer]->SetCursorColor(10,212,255);
+ mSlicers[slicer]->SetCursorColor(1,0,0);
mSelectedSlicer = slicer;
switch (mSlicers[slicer]->GetSliceOrientation()) {
if (current) { //do not display corner annotation if image is the one picked
mSlicers[i]->SetCurrentPosition(-VTK_DOUBLE_MAX,-VTK_DOUBLE_MAX,
-VTK_DOUBLE_MAX, mSlicers[slicer]->GetMaxCurrentTSlice());
- mSlicers[i]->SetCursorColor(255,10,212);
+ mSlicers[i]->SetCursorColor(0,0.96,0.17);
} else {
- mSlicers[i]->SetCursorColor(150,10,282);
+ mSlicers[i]->SetCursorColor(0.41,0.96,1);
}
switch (mSlicers[i]->GetSliceOrientation()) {
case vtkImageViewer2::SLICE_ORIENTATION_XY: