/usr/include/vtk-5.8/vtkActor2D.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkActor2D.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 vtkActor2D - a actor that draws 2D data
// .SECTION Description
// vtkActor2D is similar to vtkActor, but it is made to be used with two
// dimensional images and annotation. vtkActor2D has a position but does not
// use a transformation matrix like vtkActor (see the superclass vtkProp
// for information on positioning vtkActor2D). vtkActor2D has a reference to
// a vtkMapper2D object which does the rendering.
// .SECTION See Also
// vtkProp vtkMapper2D vtkProperty2D
#ifndef __vtkActor2D_h
#define __vtkActor2D_h
#include "vtkProp.h"
#include "vtkCoordinate.h" // For vtkViewportCoordinateMacro
class vtkMapper2D;
class vtkProperty2D;
class VTK_FILTERING_EXPORT vtkActor2D : public vtkProp
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeMacro(vtkActor2D,vtkProp);
// Description:
// Creates an actor2D with the following defaults:
// position (0,0) (coordinate system is viewport);
// at layer 0.
static vtkActor2D* New();
// Description:
// Support the standard render methods.
virtual int RenderOverlay(vtkViewport *viewport);
virtual int RenderOpaqueGeometry(vtkViewport *viewport);
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
// Description:
// Does this prop have some translucent polygonal geometry?
virtual int HasTranslucentPolygonalGeometry();
// Description:
// Set/Get the vtkMapper2D which defines the data to be drawn.
virtual void SetMapper(vtkMapper2D *mapper);
vtkGetObjectMacro(Mapper, vtkMapper2D);
// Description:
// Set/Get the layer number in the overlay planes into which to render.
vtkSetMacro(LayerNumber, int);
vtkGetMacro(LayerNumber, int);
// Description:
// Returns this actor's vtkProperty2D. Creates a property if one
// doesn't already exist.
vtkProperty2D* GetProperty();
// Description:
// Set this vtkProp's vtkProperty2D.
virtual void SetProperty(vtkProperty2D*);
// Description:
// Get the PositionCoordinate instance of vtkCoordinate.
// This is used for for complicated or relative positioning.
// The position variable controls the lower left corner of the Actor2D
vtkViewportCoordinateMacro(Position);
// Description:
// Set the Prop2D's position in display coordinates.
void SetDisplayPosition(int,int);
// Description:
// Access the Position2 instance variable. This variable controls
// the upper right corner of the Actor2D. It is by default
// relative to Position and in normalized viewport coordinates.
// Some 2D actor subclasses ignore the position2 variable
vtkViewportCoordinateMacro(Position2);
// Description:
// Set/Get the height and width of the Actor2D. The value is expressed
// as a fraction of the viewport. This really is just another way of
// setting the Position2 instance variable.
void SetWidth(double w);
double GetWidth();
void SetHeight(double h);
double GetHeight();
// Description:
// Return this objects MTime.
virtual unsigned long GetMTime();
// 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 GetActors2D(vtkPropCollection *pc);
// Description:
// Shallow copy of this vtkActor2D. Overloads the virtual vtkProp method.
virtual 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.
virtual void ReleaseGraphicsResources(vtkWindow *);
// Description:
// Return the actual vtkCoordinate reference that the mapper should use
// to position the actor. This is used internally by the mappers and should
// be overridden in specialized subclasses and otherwise ignored.
virtual vtkCoordinate *GetActualPositionCoordinate(void)
{ return this->PositionCoordinate; }
// Description:
// Return the actual vtkCoordinate reference that the mapper should use
// to position the actor. This is used internally by the mappers and should
// be overridden in specialized subclasses and otherwise ignored.
virtual vtkCoordinate *GetActualPosition2Coordinate(void)
{ return this->Position2Coordinate; }
protected:
vtkActor2D();
~vtkActor2D();
vtkMapper2D *Mapper;
int LayerNumber;
vtkProperty2D *Property;
vtkCoordinate *PositionCoordinate;
vtkCoordinate *Position2Coordinate;
private:
vtkActor2D(const vtkActor2D&); // Not implemented.
void operator=(const vtkActor2D&); // Not implemented.
};
#endif
|