/usr/include/vtk-5.8/vtkAnnotatedCubeActor.h is in libvtk5-dev 5.8.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAnnotatedCubeActor.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkAnnotatedCubeActor - a 3D cube with face labels
// .SECTION Description
// vtkAnnotatedCubeActor is a hybrid 3D actor used to represent an anatomical
// orientation marker in a scene. The class consists of a 3D unit cube centered
// on the origin with each face labelled in correspondance to a particular
// coordinate direction. For example, with Cartesian directions, the user
// defined text labels could be: +X, -X, +Y, -Y, +Z, -Z, while for anatomical
// directions: A, P, L, R, S, I. Text is automatically centered on each cube
// face and is not restriceted to single characters. In addition to or in
// replace of a solid text label representation, the outline edges of the labels
// can be displayed. The individual properties of the cube, face labels
// and text outlines can be manipulated as can their visibility.
// .SECTION Caveats
// vtkAnnotatedCubeActor is primarily intended for use with
// vtkOrientationMarkerWidget. The cube face text is generated by vtkVectorText
// and therefore the font attributes are restricted.
// .SECTION See Also
// vtkAxesActor vtkOrientationMarkerWidget vtkVectorText
#ifndef __vtkAnnotatedCubeActor_h
#define __vtkAnnotatedCubeActor_h
#include "vtkProp3D.h"
class vtkActor;
class vtkAppendPolyData;
class vtkAssembly;
class vtkCubeSource;
class vtkFeatureEdges;
class vtkPropCollection;
class vtkProperty;
class vtkRenderer;
class vtkTransform;
class vtkTransformFilter;
class vtkVectorText;
class VTK_HYBRID_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
{
public:
static vtkAnnotatedCubeActor *New();
vtkTypeMacro(vtkAnnotatedCubeActor,vtkProp3D);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// For some exporters and other other operations we must be
// able to collect all the actors or volumes. These methods
// are used in that process.
virtual void GetActors(vtkPropCollection *);
// Description:
// Support the standard render methods.
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
// Description:
// Does this prop have some translucent polygonal geometry?
virtual int HasTranslucentPolygonalGeometry();
// Description:
// Shallow copy of an axes actor. Overloads the virtual vtkProp method.
void ShallowCopy(vtkProp *prop);
// Description:
// Release any graphics resources that are being consumed by this actor.
// The parameter window could be used to determine which graphic
// resources to release.
void ReleaseGraphicsResources(vtkWindow *);
// Description:
// Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The
// method GetBounds(double bounds[6]) is available from the superclass.)
void GetBounds(double bounds[6]);
double *GetBounds();
// Description:
// Get the actors mtime plus consider its properties and texture if set.
unsigned long int GetMTime();
// Description:
// Set/Get the scale factor for the face text
void SetFaceTextScale(double);
vtkGetMacro(FaceTextScale, double);
// Description:
// Get the individual face text properties.
vtkProperty *GetXPlusFaceProperty();
vtkProperty *GetXMinusFaceProperty();
vtkProperty *GetYPlusFaceProperty();
vtkProperty *GetYMinusFaceProperty();
vtkProperty *GetZPlusFaceProperty();
vtkProperty *GetZMinusFaceProperty();
// Description:
// Get the cube properties.
vtkProperty *GetCubeProperty();
// Description:
// Get the text edges properties.
vtkProperty *GetTextEdgesProperty();
// Description:
// Set/get the face text.
vtkSetStringMacro( XPlusFaceText );
vtkGetStringMacro( XPlusFaceText );
vtkSetStringMacro( XMinusFaceText );
vtkGetStringMacro( XMinusFaceText );
vtkSetStringMacro( YPlusFaceText );
vtkGetStringMacro( YPlusFaceText );
vtkSetStringMacro( YMinusFaceText );
vtkGetStringMacro( YMinusFaceText );
vtkSetStringMacro( ZPlusFaceText );
vtkGetStringMacro( ZPlusFaceText );
vtkSetStringMacro( ZMinusFaceText );
vtkGetStringMacro( ZMinusFaceText );
// Description:
// Enable/disable drawing the vector text edges.
void SetTextEdgesVisibility(int);
int GetTextEdgesVisibility();
// Description:
// Enable/disable drawing the cube.
void SetCubeVisibility(int);
int GetCubeVisibility();
// Description:
// Enable/disable drawing the vector text.
void SetFaceTextVisibility(int);
int GetFaceTextVisibility();
// Description:
// Augment individual face text orientations.
vtkSetMacro(XFaceTextRotation,double);
vtkGetMacro(XFaceTextRotation,double);
vtkSetMacro(YFaceTextRotation,double);
vtkGetMacro(YFaceTextRotation,double);
vtkSetMacro(ZFaceTextRotation,double);
vtkGetMacro(ZFaceTextRotation,double);
// Description:
// Get the assembly so that user supplied transforms can be applied
vtkAssembly *GetAssembly()
{ return this->Assembly; }
protected:
vtkAnnotatedCubeActor();
~vtkAnnotatedCubeActor();
vtkCubeSource *CubeSource;
vtkActor *CubeActor;
vtkAppendPolyData *AppendTextEdges;
vtkFeatureEdges *ExtractTextEdges;
vtkActor *TextEdgesActor;
void UpdateProps();
char *XPlusFaceText;
char *XMinusFaceText;
char *YPlusFaceText;
char *YMinusFaceText;
char *ZPlusFaceText;
char *ZMinusFaceText;
double FaceTextScale;
double XFaceTextRotation;
double YFaceTextRotation;
double ZFaceTextRotation;
vtkVectorText *XPlusFaceVectorText;
vtkVectorText *XMinusFaceVectorText;
vtkVectorText *YPlusFaceVectorText;
vtkVectorText *YMinusFaceVectorText;
vtkVectorText *ZPlusFaceVectorText;
vtkVectorText *ZMinusFaceVectorText;
vtkActor *XPlusFaceActor;
vtkActor *XMinusFaceActor;
vtkActor *YPlusFaceActor;
vtkActor *YMinusFaceActor;
vtkActor *ZPlusFaceActor;
vtkActor *ZMinusFaceActor;
vtkTransformFilter *TransformFilter;
vtkTransform *Transform;
vtkAssembly *Assembly;
private:
vtkAnnotatedCubeActor(const vtkAnnotatedCubeActor&); // Not implemented.
void operator=(const vtkAnnotatedCubeActor&); // Not implemented.
};
#endif
|