#include <vtkDistanceToCamera.h>
This filter adds a double array containing the distance from each point to the camera. If Scaling is on, it will use the values in the input array to process in order to scale the size of the points. ScreenSize sets the size in screen pixels that you would want a rendered rectangle at that point to be, if it was scaled by the output array.
Definition at line 38 of file vtkDistanceToCamera.h.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual unsigned long | GetMTime () |
void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderer * | GetRenderer () |
virtual void | SetScreenSize (double) |
virtual double | GetScreenSize () |
virtual void | SetScaling (bool) |
virtual bool | GetScaling () |
virtual void | ScalingOn () |
virtual void | ScalingOff () |
Static Public Member Functions | |
static vtkDistanceToCamera * | New () |
static int | IsTypeOf (const char *type) |
static vtkDistanceToCamera * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkDistanceToCamera () | |
~vtkDistanceToCamera () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkRenderer * | Renderer |
double | ScreenSize |
bool | Scaling |
int | LastRendererSize [2] |
double | LastCameraPosition [3] |
double | LastCameraFocalPoint [3] |
double | LastCameraViewUp [3] |
double | LastCameraParallelScale |
vtkDistanceToCamera::vtkDistanceToCamera | ( | ) | [protected] |
vtkDistanceToCamera::~vtkDistanceToCamera | ( | ) | [protected] |
static vtkDistanceToCamera* vtkDistanceToCamera::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataAlgorithm.
virtual const char* vtkDistanceToCamera::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPolyDataAlgorithm.
static int vtkDistanceToCamera::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkDistanceToCamera::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataAlgorithm.
static vtkDistanceToCamera* vtkDistanceToCamera::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPolyDataAlgorithm.
void vtkDistanceToCamera::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataAlgorithm.
void vtkDistanceToCamera::SetRenderer | ( | vtkRenderer * | ren | ) |
The renderer which will ultimately render these points.
virtual vtkRenderer* vtkDistanceToCamera::GetRenderer | ( | ) | [virtual] |
The renderer which will ultimately render these points.
virtual void vtkDistanceToCamera::SetScreenSize | ( | double | ) | [virtual] |
The desired screen size obtained by scaling glyphs by the distance array. It assumes the glyph at each point will be unit size.
virtual double vtkDistanceToCamera::GetScreenSize | ( | ) | [virtual] |
The desired screen size obtained by scaling glyphs by the distance array. It assumes the glyph at each point will be unit size.
virtual void vtkDistanceToCamera::SetScaling | ( | bool | ) | [virtual] |
Whether to scale the distance by the input array to process.
virtual bool vtkDistanceToCamera::GetScaling | ( | ) | [virtual] |
Whether to scale the distance by the input array to process.
virtual void vtkDistanceToCamera::ScalingOn | ( | ) | [virtual] |
Whether to scale the distance by the input array to process.
virtual void vtkDistanceToCamera::ScalingOff | ( | ) | [virtual] |
Whether to scale the distance by the input array to process.
virtual unsigned long vtkDistanceToCamera::GetMTime | ( | ) | [virtual] |
The modified time of this filter.
Reimplemented from vtkObject.
int vtkDistanceToCamera::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
vtkRenderer* vtkDistanceToCamera::Renderer [protected] |
Definition at line 77 of file vtkDistanceToCamera.h.
double vtkDistanceToCamera::ScreenSize [protected] |
Definition at line 78 of file vtkDistanceToCamera.h.
bool vtkDistanceToCamera::Scaling [protected] |
Definition at line 79 of file vtkDistanceToCamera.h.
int vtkDistanceToCamera::LastRendererSize[2] [protected] |
Definition at line 80 of file vtkDistanceToCamera.h.
double vtkDistanceToCamera::LastCameraPosition[3] [protected] |
Definition at line 81 of file vtkDistanceToCamera.h.
double vtkDistanceToCamera::LastCameraFocalPoint[3] [protected] |
Definition at line 82 of file vtkDistanceToCamera.h.
double vtkDistanceToCamera::LastCameraViewUp[3] [protected] |
Definition at line 83 of file vtkDistanceToCamera.h.
double vtkDistanceToCamera::LastCameraParallelScale [protected] |
Definition at line 84 of file vtkDistanceToCamera.h.