Hybrid/vtkCubeAxesActor.cxx
int vtkCubeAxesActor::RenderOpaqueGeometry(vtkViewport *viewport)
{
  int i, renderedSomething=0;
  static bool initialRender = true;
  // Initialization
  if (!this->Camera)
    {
    vtkErrorMacro(<<"No camera!");
    this->RenderSomething = 0;
    return 0;
    }

  this->BuildAxes(viewport);

  if (initialRender)
    {
    for (i = 0; i < 4; i++)
      {
      this->XAxes[i]->BuildAxis(viewport, true);
      this->YAxes[i]->BuildAxis(viewport, true);
      this->ZAxes[i]->BuildAxis(viewport, true);
      }
    }
  initialRender = false;

  this->DetermineRenderAxes(viewport);

  //Render the axes
  if (this->XAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesX; i++)
      {
      renderedSomething +=
        this->XAxes[this->RenderAxesX[i]]->RenderOpaqueGeometry(viewport);
      }
    }

  if (this->YAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesY; i++)
      {
      renderedSomething +=
        this->YAxes[this->RenderAxesY[i]]->RenderOpaqueGeometry(viewport);
      }
    }

  if (this->ZAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesZ; i++)
      {
      renderedSomething +=
        this->ZAxes[this->RenderAxesZ[i]]->RenderOpaqueGeometry(viewport);
      }
    }
  return renderedSomething;
}
// *************************************************************************
// Project the bounding box and compute edges on the border of the bounding
// cube. Determine which parts of the edges are visible via intersection
// with the boundary of the viewport (minus borders).
//
//  Modifications:
//    Kathleen Bonnell, Wed Oct 31 07:57:49 PST 2001
//    Added calls to AdjustValues, AdjustRange.
//
//   Kathleen Bonnell, Wed Nov  7 16:19:16 PST 2001
//   Only render those axes needed for current FlyMode.
//   Moved bulk of 'build' code to BuildAxes method, added calls to
//   BuildAxes and DetermineRenderAxes methods.
//
//   Kathleen Bonnell, Fri Jul 25 14:37:32 PDT 2003
//   Added initial build of each axis.
// *************************************************************************
Project the bounding box and compute edges on the border of the bounding
cube. Determine which parts of the edges are visible via intersection
with the boundary of the viewport (minus borders).

Kathleen Bonnell, Wed Oct 31 07:57:49 PST 2001
Added calls to AdjustValues, AdjustRange.

Kathleen Bonnell, Wed Nov  7 16:19:16 PST 2001
Only render those axes needed for current FlyMode.
Moved bulk of 'build' code to BuildAxes method, added calls to
BuildAxes and DetermineRenderAxes methods.

Kathleen Bonnell, Fri Jul 25 14:37:32 PDT 2003
Added initial build of each axis.
Project the bounding box and compute edges on the border of the bounding cube . Determine which parts of the edges are visible via intersection with the boundary of the viewport ( minus borders ) . Kathleen Bonnell Wed Oct 31 07 : 57 : 49 PST 2001 Added calls to AdjustValues AdjustRange . Kathleen Bonnell Wed Nov 7 16 : 19 : 16 PST 2001 Only render those axes needed for current FlyMode . Moved bulk of ' build ' code to BuildAxes method added calls to BuildAxes and DetermineRenderAxes methods . Kathleen Bonnell Fri Jul 25 14 : 37 : 32 PDT 2003 Added initial build of each axis .
int vtkCubeAxesActor::RenderOpaqueGeometry(vtkViewport *viewport)
{
  int i, renderedSomething=0;
  static bool initialRender = true;
  if (!this->Camera)
    {
    vtkErrorMacro(<<"No camera!");
    this->RenderSomething = 0;
    return 0;
    }
  this->BuildAxes(viewport);
  if (initialRender)
    {
    for (i = 0; i < 4; i++)
      {
      this->XAxes[i]->BuildAxis(viewport, true);
      this->YAxes[i]->BuildAxis(viewport, true);
      this->ZAxes[i]->BuildAxis(viewport, true);
      }
    }
  initialRender = false;
  this->DetermineRenderAxes(viewport);
  if (this->XAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesX; i++)
      {
      renderedSomething +=
        this->XAxes[this->RenderAxesX[i]]->RenderOpaqueGeometry(viewport);
      }
    }
  if (this->YAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesY; i++)
      {
      renderedSomething +=
        this->YAxes[this->RenderAxesY[i]]->RenderOpaqueGeometry(viewport);
      }
    }
  if (this->ZAxisVisibility)
    {
    for (i = 0; i < this->NumberOfAxesZ; i++)
      {
      renderedSomething +=
        this->ZAxes[this->RenderAxesZ[i]]->RenderOpaqueGeometry(viewport);
      }
    }
  return renderedSomething;
}
int vtkCubeAxesActor :: RenderOpaqueGeometry ( vtkViewport * viewport ) { int i , renderedSomething = 0 ; static bool initialRender = true ; if ( ! this -> Camera ) { vtkErrorMacro ( << " " ) ; this -> RenderSomething = 0 ; return 0 ; } this -> BuildAxes ( viewport ) ; if ( initialRender ) { for ( i = 0 ; i < 4 ; i ++ ) { this -> XAxes [ i ] -> BuildAxis ( viewport , true ) ; this -> YAxes [ i ] -> BuildAxis ( viewport , true ) ; this -> ZAxes [ i ] -> BuildAxis ( viewport , true ) ; } } initialRender = false ; this -> DetermineRenderAxes ( viewport ) ; if ( this -> XAxisVisibility ) { for ( i = 0 ; i < this -> NumberOfAxesX ; i ++ ) { renderedSomething += this -> XAxes [ this -> RenderAxesX [ i ] ] -> RenderOpaqueGeometry ( viewport ) ; } } if ( this -> YAxisVisibility ) { for ( i = 0 ; i < this -> NumberOfAxesY ; i ++ ) { renderedSomething += this -> YAxes [ this -> RenderAxesY [ i ] ] -> RenderOpaqueGeometry ( viewport ) ; } } if ( this -> ZAxisVisibility ) { for ( i = 0 ; i < this -> NumberOfAxesZ ; i ++ ) { renderedSomething += this -> ZAxes [ this -> RenderAxesZ [ i ] ] -> RenderOpaqueGeometry ( viewport ) ; } } return renderedSomething ; }
Project the bounding box and compute edges on the border of the bounding
cube.
Project the bounding box and compute edges on the border of the bounding cube .
// Initialization //Render the axes