Hybrid/vtkCubeAxesActor.cxx
void vtkCubeAxesActor::SetNonDependentAttributes()
{
  vtkProperty *prop = this->GetProperty();
  prop->SetAmbient(1.0);
  prop->SetDiffuse(0.0);
  for (int i = 0; i < 4; i++)
    {
    this->XAxes[i]->SetCamera(this->Camera);
    this->XAxes[i]->SetProperty(prop);
    this->XAxes[i]->SetTickLocation(this->TickLocation);
    this->XAxes[i]->SetDrawGridlines(this->DrawXGridlines);
    this->XAxes[i]->SetBounds(this->Bounds);
    this->XAxes[i]->AxisVisibilityOn();
    this->XAxes[i]->SetLabelVisibility(this->XAxisLabelVisibility);
    this->XAxes[i]->SetTitleVisibility(this->XAxisLabelVisibility);
    this->XAxes[i]->SetTickVisibility(this->XAxisTickVisibility);
    this->XAxes[i]->SetMinorTicksVisible(this->XAxisMinorTickVisibility);

    this->YAxes[i]->SetCamera(this->Camera);
    this->YAxes[i]->SetProperty(prop);
    this->YAxes[i]->SetTickLocation(this->TickLocation);
    this->YAxes[i]->SetDrawGridlines(this->DrawYGridlines);
    this->YAxes[i]->SetBounds(this->Bounds);
    this->YAxes[i]->AxisVisibilityOn();
    this->YAxes[i]->SetLabelVisibility(this->YAxisLabelVisibility);
    this->YAxes[i]->SetTitleVisibility(this->YAxisLabelVisibility);
    this->YAxes[i]->SetTickVisibility(this->YAxisTickVisibility);
    this->YAxes[i]->SetMinorTicksVisible(this->YAxisMinorTickVisibility);

    this->ZAxes[i]->SetCamera(this->Camera);
    this->ZAxes[i]->SetProperty(prop);
    this->ZAxes[i]->SetTickLocation(this->TickLocation);
    this->ZAxes[i]->SetDrawGridlines(this->DrawZGridlines);
    this->ZAxes[i]->SetBounds(this->Bounds);
    this->ZAxes[i]->AxisVisibilityOn();
    this->ZAxes[i]->SetLabelVisibility(this->ZAxisLabelVisibility);
    this->ZAxes[i]->SetTitleVisibility(this->ZAxisLabelVisibility);
    this->ZAxes[i]->SetTickVisibility(this->ZAxisTickVisibility);
    this->ZAxes[i]->SetMinorTicksVisible(this->ZAxisMinorTickVisibility);
    }
}
// *************************************************************************
//  Sends attributes to each vtkAxisActor.  Only sets those that are
//  not dependent upon viewport changes, and thus do not need to be set
//  very often.
//
//  Programmer:  Kathleen Bonnell
//  Creation:    November 7, 2001
//
//  Modifications:
//    Kathleen Bonnell, Thu Oct  3 14:33:15 PDT 2002
//    Disable lighting for the axes by setting the ambient coefficient to 1
//    and the diffuse coeeficient to 0.
// *************************************************************************
Sends attributes to each vtkAxisActor.  Only sets those that are
not dependent upon viewport changes, and thus do not need to be set
very often.

Kathleen Bonnell
Creation:    November 7, 2001

Kathleen Bonnell, Thu Oct  3 14:33:15 PDT 2002
Disable lighting for the axes by setting the ambient coefficient to 1
and the diffuse coeeficient to 0.
Sends attributes to each vtkAxisActor . Only sets those that are not dependent upon viewport changes and thus do not need to be set very often . Kathleen Bonnell Creation : November 7 2001 Kathleen Bonnell Thu Oct 3 14 : 33 : 15 PDT 2002 Disable lighting for the axes by setting the ambient coefficient to 1 and the diffuse coeeficient to 0 .
void vtkCubeAxesActor::SetNonDependentAttributes()
{
  vtkProperty *prop = this->GetProperty();
  prop->SetAmbient(1.0);
  prop->SetDiffuse(0.0);
  for (int i = 0; i < 4; i++)
    {
    this->XAxes[i]->SetCamera(this->Camera);
    this->XAxes[i]->SetProperty(prop);
    this->XAxes[i]->SetTickLocation(this->TickLocation);
    this->XAxes[i]->SetDrawGridlines(this->DrawXGridlines);
    this->XAxes[i]->SetBounds(this->Bounds);
    this->XAxes[i]->AxisVisibilityOn();
    this->XAxes[i]->SetLabelVisibility(this->XAxisLabelVisibility);
    this->XAxes[i]->SetTitleVisibility(this->XAxisLabelVisibility);
    this->XAxes[i]->SetTickVisibility(this->XAxisTickVisibility);
    this->XAxes[i]->SetMinorTicksVisible(this->XAxisMinorTickVisibility);
    this->YAxes[i]->SetCamera(this->Camera);
    this->YAxes[i]->SetProperty(prop);
    this->YAxes[i]->SetTickLocation(this->TickLocation);
    this->YAxes[i]->SetDrawGridlines(this->DrawYGridlines);
    this->YAxes[i]->SetBounds(this->Bounds);
    this->YAxes[i]->AxisVisibilityOn();
    this->YAxes[i]->SetLabelVisibility(this->YAxisLabelVisibility);
    this->YAxes[i]->SetTitleVisibility(this->YAxisLabelVisibility);
    this->YAxes[i]->SetTickVisibility(this->YAxisTickVisibility);
    this->YAxes[i]->SetMinorTicksVisible(this->YAxisMinorTickVisibility);
    this->ZAxes[i]->SetCamera(this->Camera);
    this->ZAxes[i]->SetProperty(prop);
    this->ZAxes[i]->SetTickLocation(this->TickLocation);
    this->ZAxes[i]->SetDrawGridlines(this->DrawZGridlines);
    this->ZAxes[i]->SetBounds(this->Bounds);
    this->ZAxes[i]->AxisVisibilityOn();
    this->ZAxes[i]->SetLabelVisibility(this->ZAxisLabelVisibility);
    this->ZAxes[i]->SetTitleVisibility(this->ZAxisLabelVisibility);
    this->ZAxes[i]->SetTickVisibility(this->ZAxisTickVisibility);
    this->ZAxes[i]->SetMinorTicksVisible(this->ZAxisMinorTickVisibility);
    }
}
void vtkCubeAxesActor :: SetNonDependentAttributes ( ) { vtkProperty * prop = this -> GetProperty ( ) ; prop -> SetAmbient ( 1.0 ) ; prop -> SetDiffuse ( 0.0 ) ; for ( int i = 0 ; i < 4 ; i ++ ) { this -> XAxes [ i ] -> SetCamera ( this -> Camera ) ; this -> XAxes [ i ] -> SetProperty ( prop ) ; this -> XAxes [ i ] -> SetTickLocation ( this -> TickLocation ) ; this -> XAxes [ i ] -> SetDrawGridlines ( this -> DrawXGridlines ) ; this -> XAxes [ i ] -> SetBounds ( this -> Bounds ) ; this -> XAxes [ i ] -> AxisVisibilityOn ( ) ; this -> XAxes [ i ] -> SetLabelVisibility ( this -> XAxisLabelVisibility ) ; this -> XAxes [ i ] -> SetTitleVisibility ( this -> XAxisLabelVisibility ) ; this -> XAxes [ i ] -> SetTickVisibility ( this -> XAxisTickVisibility ) ; this -> XAxes [ i ] -> SetMinorTicksVisible ( this -> XAxisMinorTickVisibility ) ; this -> YAxes [ i ] -> SetCamera ( this -> Camera ) ; this -> YAxes [ i ] -> SetProperty ( prop ) ; this -> YAxes [ i ] -> SetTickLocation ( this -> TickLocation ) ; this -> YAxes [ i ] -> SetDrawGridlines ( this -> DrawYGridlines ) ; this -> YAxes [ i ] -> SetBounds ( this -> Bounds ) ; this -> YAxes [ i ] -> AxisVisibilityOn ( ) ; this -> YAxes [ i ] -> SetLabelVisibility ( this -> YAxisLabelVisibility ) ; this -> YAxes [ i ] -> SetTitleVisibility ( this -> YAxisLabelVisibility ) ; this -> YAxes [ i ] -> SetTickVisibility ( this -> YAxisTickVisibility ) ; this -> YAxes [ i ] -> SetMinorTicksVisible ( this -> YAxisMinorTickVisibility ) ; this -> ZAxes [ i ] -> SetCamera ( this -> Camera ) ; this -> ZAxes [ i ] -> SetProperty ( prop ) ; this -> ZAxes [ i ] -> SetTickLocation ( this -> TickLocation ) ; this -> ZAxes [ i ] -> SetDrawGridlines ( this -> DrawZGridlines ) ; this -> ZAxes [ i ] -> SetBounds ( this -> Bounds ) ; this -> ZAxes [ i ] -> AxisVisibilityOn ( ) ; this -> ZAxes [ i ] -> SetLabelVisibility ( this -> ZAxisLabelVisibility ) ; this -> ZAxes [ i ] -> SetTitleVisibility ( this -> ZAxisLabelVisibility ) ; this -> ZAxes [ i ] -> SetTickVisibility ( this -> ZAxisTickVisibility ) ; this -> ZAxes [ i ] -> SetMinorTicksVisible ( this -> ZAxisMinorTickVisibility ) ; } }
Sends attributes to each vtkAxisActor.
Sends attributes to each vtkAxisActor .