Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkAnnotatedCubeActor.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkAnnotatedCubeActor.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00054 #ifndef __vtkAnnotatedCubeActor_h
00055 #define __vtkAnnotatedCubeActor_h
00056 
00057 #include "vtkProp3D.h"
00058 
00059 class vtkActor;
00060 class vtkAppendPolyData;
00061 class vtkCubeSource;
00062 class vtkFeatureEdges;
00063 class vtkPropCollection;
00064 class vtkProperty;
00065 class vtkRenderer;
00066 class vtkTransform;
00067 class vtkTransformFilter;
00068 class vtkVectorText;
00069 
00070 class VTK_HYBRID_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
00071 {
00072 public:
00073   static vtkAnnotatedCubeActor *New();
00074   vtkTypeRevisionMacro(vtkAnnotatedCubeActor,vtkProp3D);
00075   void PrintSelf(ostream& os, vtkIndent indent);
00076 
00080   virtual void GetActors(vtkPropCollection *);
00081 
00083 
00084   virtual int RenderOpaqueGeometry(vtkViewport *viewport);
00085   virtual int RenderTranslucentGeometry(vtkViewport *viewport);
00087 
00089   void ShallowCopy(vtkProp *prop);
00090 
00094   void ReleaseGraphicsResources(vtkWindow *);
00095 
00097 
00100   void GetBounds(double bounds[6]);
00101   double *GetBounds();
00103 
00105   unsigned long int GetMTime();
00106 
00111   virtual unsigned long GetRedrawMTime();
00112 
00114 
00115   void SetFaceTextScale(double);
00116   vtkGetMacro(FaceTextScale, double);
00118 
00120 
00121   vtkProperty *GetXPlusFaceProperty();
00122   vtkProperty *GetXMinusFaceProperty();
00123   vtkProperty *GetYPlusFaceProperty();
00124   vtkProperty *GetYMinusFaceProperty();
00125   vtkProperty *GetZPlusFaceProperty();
00126   vtkProperty *GetZMinusFaceProperty();
00128 
00130   vtkProperty *GetCubeProperty();
00131 
00133   vtkProperty *GetTextEdgesProperty();
00134 
00136 
00137   vtkSetStringMacro( XPlusFaceText );
00138   vtkGetStringMacro( XPlusFaceText );
00139   vtkSetStringMacro( XMinusFaceText );
00140   vtkGetStringMacro( XMinusFaceText );
00141   vtkSetStringMacro( YPlusFaceText );
00142   vtkGetStringMacro( YPlusFaceText );
00143   vtkSetStringMacro( YMinusFaceText );
00144   vtkGetStringMacro( YMinusFaceText );
00145   vtkSetStringMacro( ZPlusFaceText );
00146   vtkGetStringMacro( ZPlusFaceText );
00147   vtkSetStringMacro( ZMinusFaceText );
00148   vtkGetStringMacro( ZMinusFaceText );
00150 
00152 
00153   vtkSetMacro(TextEdges, int);
00154   vtkGetMacro(TextEdges, int);
00155   vtkBooleanMacro(TextEdges, int);
00157 
00159 
00160   vtkSetMacro(Cube, int);
00161   vtkGetMacro(Cube, int);
00162   vtkBooleanMacro(Cube, int);
00164 
00166 
00167   vtkSetMacro(FaceText, int);
00168   vtkGetMacro(FaceText, int);
00169   vtkBooleanMacro(FaceText, int);
00171 
00173 
00174   vtkSetMacro(XFaceTextRotation,double);
00175   vtkGetMacro(XFaceTextRotation,double);
00176   vtkSetMacro(YFaceTextRotation,double);
00177   vtkGetMacro(YFaceTextRotation,double);
00178   vtkSetMacro(ZFaceTextRotation,double);
00179   vtkGetMacro(ZFaceTextRotation,double);
00181 
00182 protected:
00183   vtkAnnotatedCubeActor();
00184   ~vtkAnnotatedCubeActor();
00185 
00186   vtkCubeSource      *CubeSource;
00187   vtkActor           *CubeActor;
00188   int                 Cube;
00189 
00190   vtkAppendPolyData  *AppendTextEdges;
00191   vtkFeatureEdges    *ExtractTextEdges;
00192   vtkActor           *TextEdgesActor;
00193   int                 TextEdges;
00194 
00195   void                UpdateProps();
00196 
00197   char               *XPlusFaceText;
00198   char               *XMinusFaceText;
00199   char               *YPlusFaceText;
00200   char               *YMinusFaceText;
00201   char               *ZPlusFaceText;
00202   char               *ZMinusFaceText;
00203 
00204   double              FaceTextScale;
00205   int                 FaceText;
00206 
00207   double              XFaceTextRotation;
00208   double              YFaceTextRotation;
00209   double              ZFaceTextRotation;
00210 
00211   vtkVectorText      *XPlusFaceVectorText;
00212   vtkVectorText      *XMinusFaceVectorText;
00213   vtkVectorText      *YPlusFaceVectorText;
00214   vtkVectorText      *YMinusFaceVectorText;
00215   vtkVectorText      *ZPlusFaceVectorText;
00216   vtkVectorText      *ZMinusFaceVectorText;
00217 
00218   vtkActor           *XPlusFaceActor;
00219   vtkActor           *XMinusFaceActor;
00220   vtkActor           *YPlusFaceActor;
00221   vtkActor           *YMinusFaceActor;
00222   vtkActor           *ZPlusFaceActor;
00223   vtkActor           *ZMinusFaceActor;
00224 
00225   vtkTransformFilter *TransformFilter;
00226   vtkTransform       *Transform;
00227 
00228 private:
00229   vtkAnnotatedCubeActor(const vtkAnnotatedCubeActor&);  // Not implemented.
00230   void operator=(const vtkAnnotatedCubeActor&);  // Not implemented.
00231 };
00232 
00233 #endif
00234