Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkImageLogic Class Reference

#include <vtkImageLogic.h>

Inheritance diagram for vtkImageLogic:

Inheritance graph
[legend]
Collaboration diagram for vtkImageLogic:

Collaboration graph
[legend]
List of all members.

Detailed Description

And, or, xor, nand, nor, not.

vtkImageLogic implements basic logic operations. SetOperation is used to select the filter's behavior. The filter can take two or one input. Inputs must have the same type.

Created by:
  • Law, Charles
CVS contributions (if > 5%):
  • Martin, Ken (54%)
  • Law, Charles (33%)
CVS logs (CVSweb):
  • .h (/Imaging/vtkImageLogic.h)
  • .cxx (/Imaging/vtkImageLogic.cxx)
Tests:
vtkImageLogic (Tests)

Definition at line 54 of file vtkImageLogic.h.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetOperation (int)
virtual int GetOperation ()
void SetOperationToAnd ()
void SetOperationToOr ()
void SetOperationToXor ()
void SetOperationToNand ()
void SetOperationToNor ()
void SetOperationToNot ()
virtual void SetOutputTrueValue (double)
virtual double GetOutputTrueValue ()
virtual void SetInput1 (vtkDataObject *input)
virtual void SetInput2 (vtkDataObject *input)

Static Public Member Functions

vtkImageLogicNew ()
int IsTypeOf (const char *type)
vtkImageLogicSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkImageLogic ()
 ~vtkImageLogic ()
void ThreadedRequestData (vtkInformation *request, vtkInformationVector *inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int id)

Protected Attributes

int Operation
double OutputTrueValue


Member Typedef Documentation

typedef vtkThreadedImageAlgorithm vtkImageLogic::Superclass
 

Reimplemented from vtkThreadedImageAlgorithm.

Definition at line 58 of file vtkImageLogic.h.


Constructor & Destructor Documentation

vtkImageLogic::vtkImageLogic  )  [protected]
 

vtkImageLogic::~vtkImageLogic  )  [inline, protected]
 

Definition at line 93 of file vtkImageLogic.h.


Member Function Documentation

vtkImageLogic* vtkImageLogic::New  )  [static]
 

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

Reimplemented from vtkAlgorithm.

virtual const char* vtkImageLogic::GetClassName  )  [virtual]
 

Reimplemented from vtkThreadedImageAlgorithm.

int vtkImageLogic::IsTypeOf const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkThreadedImageAlgorithm.

virtual int vtkImageLogic::IsA const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkThreadedImageAlgorithm.

vtkImageLogic* vtkImageLogic::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkThreadedImageAlgorithm.

void vtkImageLogic::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 vtkThreadedImageAlgorithm.

virtual void vtkImageLogic::SetOperation int   )  [virtual]
 

Set/Get the Operation to perform.

virtual int vtkImageLogic::GetOperation  )  [virtual]
 

Set/Get the Operation to perform.

void vtkImageLogic::SetOperationToAnd  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 65 of file vtkImageLogic.h.

References VTK_AND.

void vtkImageLogic::SetOperationToOr  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 66 of file vtkImageLogic.h.

References VTK_OR.

void vtkImageLogic::SetOperationToXor  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 67 of file vtkImageLogic.h.

References VTK_XOR.

void vtkImageLogic::SetOperationToNand  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 68 of file vtkImageLogic.h.

References VTK_NAND.

void vtkImageLogic::SetOperationToNor  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 69 of file vtkImageLogic.h.

References VTK_NOR.

void vtkImageLogic::SetOperationToNot  )  [inline]
 

Set/Get the Operation to perform.

Definition at line 70 of file vtkImageLogic.h.

References VTK_NOT.

virtual void vtkImageLogic::SetOutputTrueValue double   )  [virtual]
 

Set the value to use for true in the output.

virtual double vtkImageLogic::GetOutputTrueValue  )  [virtual]
 

Set the value to use for true in the output.

virtual void vtkImageLogic::SetInput1 vtkDataObject input  )  [inline, virtual]
 

Set the Input1 of this filter.

Definition at line 81 of file vtkImageLogic.h.

References vtkImageAlgorithm::SetInput().

virtual void vtkImageLogic::SetInput2 vtkDataObject input  )  [inline, virtual]
 

Set the Input2 of this filter.

Definition at line 87 of file vtkImageLogic.h.

References vtkImageAlgorithm::SetInput().

void vtkImageLogic::ThreadedRequestData vtkInformation request,
vtkInformationVector inputVector,
vtkInformationVector outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  extent[6],
int  id
[protected, virtual]
 

If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.

Reimplemented from vtkThreadedImageAlgorithm.


Member Data Documentation

int vtkImageLogic::Operation [protected]
 

Definition at line 95 of file vtkImageLogic.h.

double vtkImageLogic::OutputTrueValue [protected]
 

Definition at line 96 of file vtkImageLogic.h.


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