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
|
/*=========================================================================
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/VolViewCopyright.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 vtkSurfaceAnnotation - a surface
// .SECTION Description
#ifndef __vtkSurfaceAnnotation_h
#define __vtkSurfaceAnnotation_h
#include "vtkObject.h"
class vtkActor;
class vtkPolyData;
class vtkKWRenderWidget;
class VTK_EXPORT vtkSurfaceAnnotation : public vtkObject
{
public:
static vtkSurfaceAnnotation* New();
vtkTypeRevisionMacro(vtkSurfaceAnnotation, vtkObject);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the input data for this annotation
virtual void SetInput(vtkPolyData *);
vtkGetObjectMacro(Input, vtkPolyData);
// Description:
// Set/Get the render widget for this annotation
// Not ref counted because we do not know in Close() if it should
// be released or not (a widget can be closed without being destroyed,
// for example when new data is loaded).
virtual void SetRenderWidget(vtkKWRenderWidget*);
vtkGetObjectMacro(RenderWidget, vtkKWRenderWidget);
// Description:
// Remove any actors related to this annotation.
virtual void Remove();
// Description:
// Close out (and remove any actors) prior to deletion.
virtual void Close();
protected:
vtkSurfaceAnnotation();
~vtkSurfaceAnnotation();
vtkPolyData *Input;
vtkKWRenderWidget *RenderWidget;
vtkActor *Actor;
private:
vtkSurfaceAnnotation(const vtkSurfaceAnnotation&); // Not implemented
void operator=(const vtkSurfaceAnnotation&); // Not implemented
};
#endif
|