ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageSliceRepresentation Class Reference

representation for showing slices from a vtkImageData. More...

#include <vtkImageSliceRepresentation.h>

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

List of all members.

Public Types

enum  AttributeTypes { POINT_DATA = 0, CELL_DATA = 1 }
enum  { XY_PLANE = VTK_XY_PLANE, YZ_PLANE = VTK_YZ_PLANE, XZ_PLANE = VTK_XZ_PLANE }

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetColorAttributeType (int type)
void SetColorArrayName (const char *name)
virtual void MarkModified ()
virtual void SetVisibility (bool val)
void SetOrientation (double, double, double)
void SetOrigin (double, double, double)
void SetPickable (int val)
void SetPosition (double, double, double)
void SetScale (double, double, double)
void SetOpacity (double val)
void SetLookupTable (vtkScalarsToColors *val)
void SetMapScalars (int val)
void SetUseXYPlane (int val)
virtual int ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
virtual void SetSlice (unsigned int)
virtual unsigned int GetSlice ()
virtual void SetSliceMode (int)
virtual int GetSliceMode ()

Static Public Member Functions

static
vtkImageSliceRepresentation
New ()
static int IsTypeOf (const char *type)
static
vtkImageSliceRepresentation
SafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageSliceRepresentation ()
 ~vtkImageSliceRepresentation ()
void UpdateSliceData (vtkInformationVector **)
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual bool AddToView (vtkView *view)
virtual bool RemoveFromView (vtkView *view)
virtual bool IsCached (double cache_key)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

int SliceMode
unsigned int Slice
vtkTimeStamp DeliveryTimeStamp
int WholeExtent [6]
vtkPVCacheKeeperCacheKeeper
vtkImageSliceDataDeliveryFilterDeliveryFilter
vtkPVImageSliceMapperSliceMapper
vtkPVLODActorActor
vtkImageDataSliceData

Detailed Description

representation for showing slices from a vtkImageData.

vtkImageSliceRepresentation is a representation for showing slices from an image dataset. Currently, it does not support composite datasets, however, we should be able to add such a support in future.

Definition at line 37 of file vtkImageSliceRepresentation.h.


Member Enumeration Documentation

Enumerator:
POINT_DATA 
CELL_DATA 

Definition at line 46 of file vtkImageSliceRepresentation.h.

anonymous enum
Enumerator:
XY_PLANE 
YZ_PLANE 
XZ_PLANE 

Definition at line 86 of file vtkImageSliceRepresentation.h.


Constructor & Destructor Documentation

vtkImageSliceRepresentation::vtkImageSliceRepresentation ( ) [protected]
vtkImageSliceRepresentation::~vtkImageSliceRepresentation ( ) [protected]

Member Function Documentation

static vtkImageSliceRepresentation* vtkImageSliceRepresentation::New ( ) [static]

Reimplemented from vtkDataRepresentation.

virtual const char* vtkImageSliceRepresentation::GetClassName ( ) [virtual]

Reimplemented from vtkPVDataRepresentation.

static int vtkImageSliceRepresentation::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkPVDataRepresentation.

virtual int vtkImageSliceRepresentation::IsA ( const char *  type) [virtual]

Reimplemented from vtkPVDataRepresentation.

static vtkImageSliceRepresentation* vtkImageSliceRepresentation::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkPVDataRepresentation.

void vtkImageSliceRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkPVDataRepresentation.

void vtkImageSliceRepresentation::SetColorAttributeType ( int  type)

Methods to control scalar coloring. ColorAttributeType defines the attribute type.

void vtkImageSliceRepresentation::SetColorArrayName ( const char *  name)

Pick the array to color with.

virtual int vtkImageSliceRepresentation::ProcessViewRequest ( vtkInformationRequestKey request_type,
vtkInformation inInfo,
vtkInformation outInfo 
) [virtual]

vtkAlgorithm::ProcessRequest() equivalent for rendering passes. This is typically called by the vtkView to request meta-data from the representations or ask them to perform certain tasks e.g. PrepareForRendering.

Reimplemented from vtkPVDataRepresentation.

virtual void vtkImageSliceRepresentation::MarkModified ( ) [virtual]

This needs to be called on all instances of vtkImageSliceRepresentation when the input is modified. This is essential since the geometry filter does not have any real-input on the client side which messes with the Update requests.

Reimplemented from vtkPVDataRepresentation.

virtual void vtkImageSliceRepresentation::SetVisibility ( bool  val) [virtual]

Get/Set the visibility for this representation. When the visibility of representation of false, all view passes are ignored. Overridden to propagate to the active representation.

Reimplemented from vtkPVDataRepresentation.

virtual void vtkImageSliceRepresentation::SetSlice ( unsigned  int) [virtual]

Get set the slice number to extract.

virtual unsigned int vtkImageSliceRepresentation::GetSlice ( ) [virtual]

Get set the slice number to extract.

virtual void vtkImageSliceRepresentation::SetSliceMode ( int  ) [virtual]

Get/Set the direction in which to slice a 3D input data.

virtual int vtkImageSliceRepresentation::GetSliceMode ( ) [virtual]

Get/Set the direction in which to slice a 3D input data.

void vtkImageSliceRepresentation::SetOrientation ( double  ,
double  ,
double   
)
void vtkImageSliceRepresentation::SetOrigin ( double  ,
double  ,
double   
)
void vtkImageSliceRepresentation::SetPickable ( int  val)
void vtkImageSliceRepresentation::SetPosition ( double  ,
double  ,
double   
)
void vtkImageSliceRepresentation::SetScale ( double  ,
double  ,
double   
)
void vtkImageSliceRepresentation::SetOpacity ( double  val)
void vtkImageSliceRepresentation::SetLookupTable ( vtkScalarsToColors val)
void vtkImageSliceRepresentation::SetMapScalars ( int  val)
void vtkImageSliceRepresentation::SetUseXYPlane ( int  val)
void vtkImageSliceRepresentation::UpdateSliceData ( vtkInformationVector **  ) [protected]

Extract the slice.

virtual int vtkImageSliceRepresentation::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill input port information.

Reimplemented from vtkPassInputTypeAlgorithm.

virtual int vtkImageSliceRepresentation::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Subclasses should override this to connect inputs to the internal pipeline as necessary. Since most representations are "meta-filters" (i.e. filters containing other filters), you should create shallow copies of your input before connecting to the internal pipeline. The convenience method GetInternalOutputPort will create a cached shallow copy of a specified input for you. The related helper functions GetInternalAnnotationOutputPort, GetInternalSelectionOutputPort should be used to obtain a selection or annotation port whose selections are localized for a particular input data object.

Reimplemented from vtkPVDataRepresentation.

virtual bool vtkImageSliceRepresentation::AddToView ( vtkView view) [protected, virtual]

Adds the representation to the view. This is called from vtkView::AddRepresentation(). Subclasses should override this method. Returns true if the addition succeeds.

Reimplemented from vtkPVDataRepresentation.

virtual bool vtkImageSliceRepresentation::RemoveFromView ( vtkView view) [protected, virtual]

Removes the representation to the view. This is called from vtkView::RemoveRepresentation(). Subclasses should override this method. Returns true if the removal succeeds.

Reimplemented from vtkPVDataRepresentation.

virtual bool vtkImageSliceRepresentation::IsCached ( double  cache_key) [protected, virtual]

Overridden to check with the vtkPVCacheKeeper to see if the key is cached.

Reimplemented from vtkPVDataRepresentation.


Member Data Documentation

Definition at line 157 of file vtkImageSliceRepresentation.h.

Definition at line 158 of file vtkImageSliceRepresentation.h.

Definition at line 160 of file vtkImageSliceRepresentation.h.

Definition at line 162 of file vtkImageSliceRepresentation.h.

Definition at line 163 of file vtkImageSliceRepresentation.h.

Definition at line 164 of file vtkImageSliceRepresentation.h.

Definition at line 165 of file vtkImageSliceRepresentation.h.

Definition at line 166 of file vtkImageSliceRepresentation.h.

Definition at line 167 of file vtkImageSliceRepresentation.h.


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