Developer documentation | Axl-2.5.1

axlRenderer.h
Go to the documentation of this file.
1 /* axlRenderer.h ---
2  *
3  * Author: Meriadeg Perrinel
4  * Copyright (C) 2008 - Meriadeg Perrinel, Inria.
5  * Created: Tue Nov 9 16:58:59 2010 (+0100)
6  * Version: $Id$
7  * Last-Updated: Tue Nov 9 17:09:38 2010 (+0100)
8  * By: Meriadeg Perrinel
9  * Update #: 19
10  */
11 
12 /* Commentary:
13  *
14  */
15 
16 /* Change log:
17  *
18  */
19 
20 
21 
22 /*=========================================================================
23 
24  Program: Visualization Toolkit
25  Module: axlRenderer.h
26 
27  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
28  All rights reserved.
29  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
30 
31  This software is distributed WITHOUT ANY WARRANTY; without even
32  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
33  PURPOSE. See the above copyright notice for more information.
34 
35 =========================================================================*/
36 // .NAME axlRenderer - OpenGL renderer
37 // .SECTION Description
38 // axlRenderer is a concrete implementation of the abstract class
39 // vtkRenderer. axlRenderer interfaces to the OpenGL graphics library.
40 
41 #ifndef AXLRENDERER_H
42 #define AXLRENDERER_H
43 
44 #include <vtkOpenGLRenderer.h>
45 
46 #include "vtkViewPluginExport.h"
47 
48 class vtkHardwareSelector;
49 class vtkRendererDelegate;
50 class vtkRenderPass;
51 class vtkTexture;
52 
53 class axlRendererPrivate;
54 
55 class VTK_RENDERING_EXPORT axlRenderer : public vtkOpenGLRenderer
56 {
57 
58 public:
59  vtkTypeMacro(axlRenderer,vtkOpenGLRenderer);
60 
61  static axlRenderer* New() { return new axlRenderer; }
62 
63  void PrintSelf(ostream& os, vtkIndent indent);
64 
65  //static axlRenderer *New();
66 
67  void useGrid(bool use);
68 
69  bool grid(void);
70 
71  void ResetCamera( double bounds[6] );
72 
73 
74  // Description:
75  // Automatically set up the camera based on the visible actors.
76  // The camera will reposition itself to view the center point of the actors,
77  // and move along its initial view plane normal (i.e., vector defined from
78  // camera position to focal point) so that all of the actors can be seen.
79  void ResetCamera();
80 
81  // Alternative version of ResetCamera(bounds[6]);
82  void ResetCamera(double xmin, double xmax,
83  double ymin, double ymax,
84  double zmin, double zmax);
85 
86  void ResetCameraClippingRange( double bounds[6] );
87  void ResetCameraClippingRange();
88 
89 
90 
91 
92 protected:
93  axlRenderer();
94  ~axlRenderer();
95 
96 
97 private:
98  axlRenderer(const axlRenderer&); // Not implemented.
99  void operator=(const axlRenderer&); // Not implemented.
100 
101 private:
102  axlRendererPrivate *d;
103 };
104 
105 #endif
static axlRenderer * New()
Definition: axlRenderer.h:61