VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkDistanceToCamera Class Reference

calculates distance from points to the camera. More...

#include <vtkDistanceToCamera.h>

Inheritance diagram for vtkDistanceToCamera:
Inheritance graph
[legend]
Collaboration diagram for vtkDistanceToCamera:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDistanceToCameraNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 39 of file vtkDistanceToCamera.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 43 of file vtkDistanceToCamera.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

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.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkDistanceToCamera::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

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.

The renderer which will ultimately render these points.

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.

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 78 of file vtkDistanceToCamera.h.

Definition at line 79 of file vtkDistanceToCamera.h.

bool vtkDistanceToCamera::Scaling [protected]

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.

Definition at line 85 of file vtkDistanceToCamera.h.


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