VTK
|
compute a 2D histogram between all adjacent columns of an input vtkTable. More...
#include <vtkPairwiseExtractHistogram2D.h>
Public Types | |
enum | OutputIndices { HISTOGRAM_IMAGE = 3 } |
typedef vtkStatisticsAlgorithm | Superclass |
![]() | |
enum | InputPorts { INPUT_DATA = 0, LEARN_PARAMETERS = 1, INPUT_MODEL = 2 } |
![]() | |
![]() | |
![]() |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
double | GetMaximumBinCount (int idx) |
double | GetMaximumBinCount () |
int | GetBinRange (int idx, vtkIdType binX, vtkIdType binY, double range[4]) |
int | GetBinRange (int idx, vtkIdType bin, double range[4]) |
void | GetBinWidth (int idx, double bw[2]) |
double * | GetHistogramExtents (int idx) |
vtkImageData * | GetOutputHistogramImage (int idx) |
vtkExtractHistogram2D * | GetHistogramFilter (int idx) |
virtual void | Aggregate (vtkDataObjectCollection *, vtkMultiBlockDataSet *) |
virtual void | SetNumberOfBins (int, int) |
void | SetNumberOfBins (int[2]) |
virtual int * | GetNumberOfBins () |
virtual void | GetNumberOfBins (int &, int &) |
virtual void | GetNumberOfBins (int[2]) |
virtual void | SetCustomColumnRangeIndex (int) |
void | SetCustomColumnRangeByIndex (double, double) |
void | SetCustomColumnRange (int col, double range[2]) |
void | SetCustomColumnRange (int col, double rmin, double rmax) |
virtual void | SetScalarType (int) |
void | SetScalarTypeToUnsignedInt () |
void | SetScalarTypeToUnsignedLong () |
void | SetScalarTypeToUnsignedShort () |
void | SetScalarTypeToUnsignedChar () |
virtual int | GetScalarType () |
![]() | |
void | SetAssessOptionParameter (vtkIdType id, vtkStdString name) |
vtkStdString | GetAssessParameter (vtkIdType id) |
virtual void | SetColumnStatus (const char *namCol, int status) |
virtual void | ResetAllColumnStates () |
virtual int | RequestSelectedColumns () |
virtual void | ResetRequests () |
virtual vtkIdType | GetNumberOfRequests () |
virtual vtkIdType | GetNumberOfColumnsForRequest (vtkIdType request) |
virtual void | SetLearnOptionParameterConnection (vtkAlgorithmOutput *params) |
virtual void | SetLearnOptionParameters (vtkDataObject *params) |
virtual void | SetInputModelConnection (vtkAlgorithmOutput *model) |
virtual void | SetInputModel (vtkDataObject *model) |
virtual void | SetLearnOption (bool) |
virtual bool | GetLearnOption () |
virtual void | SetDeriveOption (bool) |
virtual bool | GetDeriveOption () |
virtual void | SetAssessOption (bool) |
virtual bool | GetAssessOption () |
virtual void | SetTestOption (bool) |
virtual bool | GetTestOption () |
virtual void | SetNumberOfPrimaryTables (vtkIdType) |
virtual vtkIdType | GetNumberOfPrimaryTables () |
virtual void | SetAssessParameters (vtkStringArray *) |
virtual vtkStringArray * | GetAssessParameters () |
virtual void | SetAssessNames (vtkStringArray *) |
virtual vtkStringArray * | GetAssessNames () |
virtual const char * | GetColumnForRequest (vtkIdType r, vtkIdType c) |
virtual int | GetColumnForRequest (vtkIdType r, vtkIdType c, vtkStdString &columnName) |
virtual bool | SetParameter (const char *parameter, int index, vtkVariant value) |
![]() | |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
vtkTable * | GetOutput () |
vtkTable * | GetOutput (int index) |
void | SetInput (vtkDataObject *obj) |
void | SetInput (int index, vtkDataObject *obj) |
![]() | |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual int | ModifyRequest (vtkInformation *request, int when) |
vtkInformation * | GetInputPortInformation (int port) |
vtkInformation * | GetOutputPortInformation (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
void | UpdateProgress (double amount) |
vtkInformation * | GetInputArrayInformation (int idx) |
void | RemoveAllInputs () |
vtkDataObject * | GetOutputDataObject (int port) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
virtual void | Update () |
virtual void | UpdateInformation () |
virtual void | UpdateWholeExtent () |
void | ConvertTotalInputToPortConnection (int ind, int &port, int &conn) |
virtual double | ComputePriority () |
int | ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo) |
virtual int | ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime) |
virtual vtkInformation * | GetInformation () |
virtual void | SetInformation (vtkInformation *) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
virtual void | SetAbortExecute (int) |
virtual int | GetAbortExecute () |
virtual void | AbortExecuteOn () |
virtual void | AbortExecuteOff () |
virtual void | SetProgress (double) |
virtual double | GetProgress () |
void | SetProgressText (const char *ptext) |
virtual char * | GetProgressText () |
virtual unsigned long | GetErrorCode () |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
vtkDataObject * | GetInputDataObject (int port, int connection) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkPairwiseExtractHistogram2D * | New () |
static int | IsTypeOf (const char *type) |
static vtkPairwiseExtractHistogram2D * | SafeDownCast (vtkObject *o) |
Protected Attributes | |
int | NumberOfBins [2] |
int | ScalarType |
int | CustomColumnRangeIndex |
vtkSmartPointer< vtkIdTypeArray > | OutputOutlierIds |
vtkSmartPointer< vtkCollection > | HistogramFilters |
Internals * | Implementation |
vtkTimeStamp | BuildTime |
![]() | |
int | NumberOfPrimaryTables |
bool | LearnOption |
bool | DeriveOption |
bool | AssessOption |
bool | TestOption |
vtkStringArray * | AssessParameters |
vtkStringArray * | AssessNames |
vtkStatisticsAlgorithmPrivate * | Internals |
compute a 2D histogram between all adjacent columns of an input vtkTable.
This class computes a 2D histogram between all adjacent pairs of columns of an input vtkTable. Internally it creates multiple vtkExtractHistogram2D instances (one for each pair of adjacent table columns). It also manages updating histogram computations intelligently, only recomputing those histograms for whom a relevant property has been altered.
Note that there are two different outputs from this filter. One is a table for which each column contains a flattened 2D histogram array. The other is a vtkMultiBlockDataSet for which each block is a vtkImageData representation of the 2D histogram.
Definition at line 55 of file vtkPairwiseExtractHistogram2D.h.
Reimplemented from vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
Definition at line 59 of file vtkPairwiseExtractHistogram2D.h.
enumeration values to specify output port types
Reimplemented from vtkStatisticsAlgorithm.
Definition at line 127 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
|
protected |
|
static |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTableAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
virtual |
Reimplemented from vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
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 vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
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 vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
static |
Reimplemented from vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
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 vtkStatisticsAlgorithm.
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
virtual |
Set/get the bin dimensions of the histograms to compute
void vtkPairwiseExtractHistogram2D::SetNumberOfBins | ( | int | [2] | ) |
Set/get the bin dimensions of the histograms to compute
|
virtual |
Set/get the bin dimensions of the histograms to compute
|
virtual |
Set/get the bin dimensions of the histograms to compute
|
virtual |
Set/get the bin dimensions of the histograms to compute
|
virtual |
Strange method for setting an index to be used for setting custom column range. This was (probably) necessary to get this class to interact with the ParaView client/server message passing interface.
void vtkPairwiseExtractHistogram2D::SetCustomColumnRangeByIndex | ( | double | , |
double | |||
) |
Strange method for setting an index to be used for setting custom column range. This was (probably) necessary to get this class to interact with the ParaView client/server message passing interface.
void vtkPairwiseExtractHistogram2D::SetCustomColumnRange | ( | int | col, |
double | range[2] | ||
) |
More standard way to set the custom range for a particular column. This makes sure that only the affected histograms know that they need to be updated.
void vtkPairwiseExtractHistogram2D::SetCustomColumnRange | ( | int | col, |
double | rmin, | ||
double | rmax | ||
) |
More standard way to set the custom range for a particular column. This makes sure that only the affected histograms know that they need to be updated.
|
virtual |
Set the scalar type for each of the computed histograms.
|
inline |
Set the scalar type for each of the computed histograms.
Definition at line 87 of file vtkPairwiseExtractHistogram2D.h.
|
inline |
Set the scalar type for each of the computed histograms.
Definition at line 89 of file vtkPairwiseExtractHistogram2D.h.
|
inline |
Set the scalar type for each of the computed histograms.
Definition at line 91 of file vtkPairwiseExtractHistogram2D.h.
|
inline |
Set the scalar type for each of the computed histograms.
Definition at line 93 of file vtkPairwiseExtractHistogram2D.h.
|
virtual |
Set the scalar type for each of the computed histograms.
double vtkPairwiseExtractHistogram2D::GetMaximumBinCount | ( | int | idx | ) |
Get the maximum bin count for a single histogram
double vtkPairwiseExtractHistogram2D::GetMaximumBinCount | ( | ) |
Get the maximum bin count over all histograms
int vtkPairwiseExtractHistogram2D::GetBinRange | ( | int | idx, |
vtkIdType | binX, | ||
vtkIdType | binY, | ||
double | range[4] | ||
) |
Compute the range of the bin located at position (binX,binY) in the 2D histogram at idx.
int vtkPairwiseExtractHistogram2D::GetBinRange | ( | int | idx, |
vtkIdType | bin, | ||
double | range[4] | ||
) |
Get the range of the of the bin located at 1D position index bin in the 2D histogram array at idx.
void vtkPairwiseExtractHistogram2D::GetBinWidth | ( | int | idx, |
double | bw[2] | ||
) |
Get the width of all of the bins. Also stored in the spacing ivar of the histogram image output at idx.
double* vtkPairwiseExtractHistogram2D::GetHistogramExtents | ( | int | idx | ) |
Get the histogram extents currently in use, either computed or set by the user for the idx'th histogram.
vtkImageData* vtkPairwiseExtractHistogram2D::GetOutputHistogramImage | ( | int | idx | ) |
Get the vtkImageData output of the idx'th histogram filter
vtkExtractHistogram2D* vtkPairwiseExtractHistogram2D::GetHistogramFilter | ( | int | idx | ) |
Get a pointer to the idx'th histogram filter.
|
inlinevirtual |
Given a collection of models, calculate aggregate model. Not used
Implements vtkStatisticsAlgorithm.
Definition at line 134 of file vtkPairwiseExtractHistogram2D.h.
|
protectedvirtual |
Execute the calculations required by the Learn option. Does the actual histogram computation works.
Implements vtkStatisticsAlgorithm.
|
inlineprotectedvirtual |
Execute the calculations required by the Derive option. Not used.
Implements vtkStatisticsAlgorithm.
Definition at line 160 of file vtkPairwiseExtractHistogram2D.h.
|
inlineprotectedvirtual |
Execute the assess option. Not implemented.
Implements vtkStatisticsAlgorithm.
Definition at line 164 of file vtkPairwiseExtractHistogram2D.h.
|
inlineprotectedvirtual |
Execute the calculations required by the Test option.
Implements vtkStatisticsAlgorithm.
Definition at line 171 of file vtkPairwiseExtractHistogram2D.h.
|
inlineprotectedvirtual |
Provide the appropriate assessment functor.
Definition at line 178 of file vtkPairwiseExtractHistogram2D.h.
|
protectedvirtual |
Generate a new histogram filter
Reimplemented in vtkPPairwiseExtractHistogram2D.
|
protectedvirtual |
Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkStatisticsAlgorithm.
|
protected |
Definition at line 140 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 141 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 142 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 145 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 146 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 147 of file vtkPairwiseExtractHistogram2D.h.
|
protected |
Definition at line 189 of file vtkPairwiseExtractHistogram2D.h.