vtkDistanceToCamera Class Reference

#include <vtkDistanceToCamera.h>

Inheritance diagram for vtkDistanceToCamera:

Inheritance graph
[legend]
Collaboration diagram for vtkDistanceToCamera:

Collaboration graph
[legend]

List of all members.


Detailed Description

calculates distance from points to the camera.

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 vtkRendererGetRenderer ()
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 vtkDistanceToCameraNew ()
static int IsTypeOf (const char *type)
static vtkDistanceToCameraSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkDistanceToCamera ()
 ~vtkDistanceToCamera ()
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

vtkRendererRenderer
double ScreenSize
bool Scaling
int LastRendererSize [2]
double LastCameraPosition [3]
double LastCameraFocalPoint [3]
double LastCameraViewUp [3]
double LastCameraParallelScale

Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 42 of file vtkDistanceToCamera.h.


Constructor & Destructor Documentation

vtkDistanceToCamera::vtkDistanceToCamera (  )  [protected]

vtkDistanceToCamera::~vtkDistanceToCamera (  )  [protected]


Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 80 of file vtkDistanceToCamera.h.

Definition at line 81 of file vtkDistanceToCamera.h.

Definition at line 82 of file vtkDistanceToCamera.h.

Definition at line 83 of file vtkDistanceToCamera.h.

Definition at line 84 of file vtkDistanceToCamera.h.


The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:22:20 2010 for VTK by  doxygen 1.5.6