|
ParaView
|
representation for showing slices from a vtkImageData. More...
#include <vtkImageSliceRepresentation.h>


Public Types | |
| enum | { XY_PLANE = VTK_XY_PLANE, YZ_PLANE = VTK_YZ_PLANE, XZ_PLANE = VTK_XZ_PLANE } |
| typedef vtkPVDataRepresentation | Superclass |
Public Types inherited from vtkPVDataRepresentation | |
| typedef vtkDataRepresentation | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
| vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
| virtual void | MarkModified () |
| This needs to be called on all instances of vtkImageSliceRepresentation when the input is modified. More... | |
| virtual void | SetVisibility (bool val) |
| Get/Set the visibility for this representation. More... | |
| 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) |
| vtkPVLODActor * | GetActor () |
| Provides access to the actor used by this representation. More... | |
| virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
| Set the input data arrays that this algorithm will process. More... | |
| virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
| Set the input data arrays that this algorithm will process. More... | |
| virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
| Set the input data arrays that this algorithm will process. More... | |
| virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
| Set the input data arrays that this algorithm will process. More... | |
| virtual void | SetSlice (unsigned int) |
| Get set the slice number to extract. More... | |
| virtual unsigned int | GetSlice () |
| Get set the slice number to extract. More... | |
| virtual void | SetSliceMode (int) |
| Get/Set the direction in which to slice a 3D input data. More... | |
| virtual int | GetSliceMode () |
| Get/Set the direction in which to slice a 3D input data. More... | |
| void | SetAmbient (double ambient) |
| Pass lighting parameters to vtkProperty. More... | |
| void | SetDiffuse (double diffuse) |
| Pass lighting parameters to vtkProperty. More... | |
| void | SetSpecular (double specular) |
| Pass lighting parameters to vtkProperty. More... | |
| void | SetSpecularPower (double val) |
| Pass lighting parameters to vtkProperty. More... | |
| void | SetSpecularColor (double r, double g, double b) |
| Pass lighting parameters to vtkProperty. More... | |
Public Member Functions inherited from vtkPVDataRepresentation | |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| virtual unsigned int | Initialize (unsigned int minIdAvailable, unsigned int maxIdAvailable) |
| Initialize the representation with an identifier range so each internal representation can own a unique ID. More... | |
| unsigned int | GetUniqueIdentifier () |
| Return 0 if the Initialize() method was not called otherwise a unique ID that will be shared across the processes for that same object. More... | |
| virtual bool | GetVisibility () |
| virtual vtkDataObject * | GetRenderedDataObject (int vtkNotUsed(port)) |
| Returns the data object that is rendered from the given input port. More... | |
| virtual void | SetForcedCacheKey (double val) |
| Typically a representation decides whether to use cache based on the view's values for UseCache and CacheKey. More... | |
| virtual void | SetForceUseCache (bool val) |
| bool | GetUsingCacheForUpdate () |
| Called by vtkPVDataRepresentationPipeline to see if using cache is valid and will be used for the update. More... | |
| virtual bool | GetNeedUpdate () |
| virtual vtkAlgorithmOutput * | GetInternalOutputPort () |
| Retrieves an output port for the input data object at the specified port and connection index. More... | |
| virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port) |
| virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port, int conn) |
| vtkView * | GetView () const |
| Provides access to the view. More... | |
| virtual void | SetUpdateTime (double time) |
| Set the update time. More... | |
| virtual double | GetUpdateTime () |
| Set the update time. More... | |
| virtual bool | GetUpdateTimeValid () |
| Set whether the UpdateTime is valid. More... | |
| virtual void | SetUseCache (bool) |
| virtual void | SetCacheKey (double val) |
| virtual double | GetCacheKey () |
| Returns whether caching is used and what key to use when caching is enabled. More... | |
| virtual bool | GetUseCache () |
| Returns whether caching is used and what key to use when caching is enabled. More... | |
Static Public Member Functions | |
| static vtkImageSliceRepresentation * | New () |
| static int | IsTypeOf (const char *type) |
| static vtkImageSliceRepresentation * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkPVDataRepresentation | |
| static int | IsTypeOf (const char *type) |
| static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
| vtkImageSliceRepresentation () | |
| ~vtkImageSliceRepresentation () | |
| void | UpdateSliceData (vtkInformationVector **) |
| Extract the slice. More... | |
| virtual int | FillInputPortInformation (int port, vtkInformation *info) |
| Fill input port information. More... | |
| virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
| Subclasses should override this to connect inputs to the internal pipeline as necessary. More... | |
| virtual bool | AddToView (vtkView *view) |
| Adds the representation to the view. More... | |
| virtual bool | RemoveFromView (vtkView *view) |
| Removes the representation to the view. More... | |
| virtual bool | IsCached (double cache_key) |
| Overridden to check with the vtkPVCacheKeeper to see if the key is cached. More... | |
Protected Member Functions inherited from vtkPVDataRepresentation | |
| vtkPVDataRepresentation () | |
| ~vtkPVDataRepresentation () | |
| virtual vtkExecutive * | CreateDefaultExecutive () |
| Create a default executive. More... | |
| virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
| virtual int | RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
| int | SliceMode |
| unsigned int | Slice |
| vtkPVCacheKeeper * | CacheKeeper |
| vtkPVImageSliceMapper * | SliceMapper |
| vtkPVLODActor * | Actor |
| vtkImageData * | SliceData |
| vtkNew< vtkPExtentTranslator > | PExtentTranslator |
| int | WholeExtent [6] |
Protected Attributes inherited from vtkPVDataRepresentation | |
| double | UpdateTime |
| bool | UpdateTimeValid |
| unsigned int | UniqueIdentifier |
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 40 of file vtkImageSliceRepresentation.h.
Definition at line 45 of file vtkImageSliceRepresentation.h.
| anonymous enum |
| Enumerator | |
|---|---|
| XY_PLANE | |
| YZ_PLANE | |
| XZ_PLANE | |
Definition at line 105 of file vtkImageSliceRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
| void vtkImageSliceRepresentation::PrintSelf | ( | ostream & | os, |
| vtkIndent | indent | ||
| ) |
|
virtual |
Set the input data arrays that this algorithm will process.
Overridden to pass the array selection to the mapper.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Overridden to pass the array selection to the mapper.
Definition at line 55 of file vtkImageSliceRepresentation.h.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Overridden to pass the array selection to the mapper.
Definition at line 61 of file vtkImageSliceRepresentation.h.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Overridden to pass the array selection to the mapper.
Definition at line 65 of file vtkImageSliceRepresentation.h.
|
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 |
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 |
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 |
Get set the slice number to extract.
|
virtual |
Get set the slice number to extract.
|
virtual |
Get/Set the direction in which to slice a 3D input data.
|
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 | ) |
|
inline |
Provides access to the actor used by this representation.
Definition at line 141 of file vtkImageSliceRepresentation.h.
| void vtkImageSliceRepresentation::SetAmbient | ( | double | ambient | ) |
Pass lighting parameters to vtkProperty.
| void vtkImageSliceRepresentation::SetDiffuse | ( | double | diffuse | ) |
Pass lighting parameters to vtkProperty.
| void vtkImageSliceRepresentation::SetSpecular | ( | double | specular | ) |
Pass lighting parameters to vtkProperty.
| void vtkImageSliceRepresentation::SetSpecularPower | ( | double | val | ) |
Pass lighting parameters to vtkProperty.
| void vtkImageSliceRepresentation::SetSpecularColor | ( | double | r, |
| double | g, | ||
| double | b | ||
| ) |
Pass lighting parameters to vtkProperty.
|
protected |
Extract the slice.
|
protectedvirtual |
Fill input port information.
|
protectedvirtual |
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.
|
protectedvirtual |
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.
|
protectedvirtual |
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.
|
protectedvirtual |
Overridden to check with the vtkPVCacheKeeper to see if the key is cached.
Reimplemented from vtkPVDataRepresentation.
|
protected |
Definition at line 199 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 200 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 202 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 203 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 204 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 205 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 209 of file vtkImageSliceRepresentation.h.
|
protected |
Definition at line 210 of file vtkImageSliceRepresentation.h.
1.8.12