3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Enumerations | Functions | Variables
filterCommon.h File Reference
#include "../filter.h"
#include "common/stringFuncs.h"
#include "common/basics.h"
#include "common/xmlHelper.h"
#include "backend/APT/APTRanges.h"
#include <qhull/qhull_a.h>
Include dependency graph for filterCommon.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  { HULL_ERR_NO_MEM =1, HULL_ERR_USER_ABORT, HULL_ERR_QHULL_NOINIT, HULL_ERR_ENUM_END }
 

Functions

void writeVectorsXML (std::ostream &f, const char *containerName, const std::vector< Point3D > &vectorParams, unsigned int depth)
 
void writeIonsEnabledXML (std::ostream &f, const char *containerName, const std::vector< bool > &enabledState, const std::vector< std::string > &names, unsigned int depth)
 
void readIonsEnabledXML (xmlNodePtr nodePtr, vector< bool > &enabledStatus, vector< string > &names)
 
template<class T >
void writeScalarsXML (std::ostream &f, const char *containerName, const std::vector< T > &scalarParams, unsigned int depth)
 
template<class T >
bool readScalarsXML (xmlNodePtr nodePtr, std::vector< T > &scalarParams)
 
bool readVectorsXML (xmlNodePtr nodePtr, std::vector< Point3D > &vectorParams)
 
bool parseXMLColour (xmlNodePtr &nodePtr, ColourRGBAf &rgbaf)
 
unsigned int getIonstreamIonID (const IonStreamData *d, const RangeFile *r)
 
size_t getTotalSizeByType (const std::vector< const FilterStreamData *> &dataIn, unsigned int streamTypeMask)
 
const RangeFilegetRangeFile (const std::vector< const FilterStreamData *> &dataIn)
 
unsigned int computeConvexHull (const std::vector< const FilterStreamData *> &data, unsigned int *progress, std::vector< Point3D > &hullPts, bool wantVolume, bool freeHull=true)
 
unsigned int computeConvexHull (const std::vector< Point3D > &data, unsigned int *progress, const bool &abortPtr, std::vector< Point3D > &hullPts, bool wantVolume, bool freeHull=true)
 
void freeConvexHull ()
 
DrawColourBarOverlaymakeColourBar (float minV, float maxV, size_t nColours, size_t colourMap, bool reverseMap=false, float alpha=1.0f)
 
std::string createTmpFilename (const char *dir=NULL, const char *extension=NULL)
 
unsigned int do2DDelaunay (double *bufXY, unsigned int n, std::vector< size_t > &ta, std::vector< size_t > &tb, std::vector< size_t > &tc)
 

Variables

const size_t PROGRESS_REDUCE =5000
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
HULL_ERR_NO_MEM 
HULL_ERR_USER_ABORT 
HULL_ERR_QHULL_NOINIT 
HULL_ERR_ENUM_END 

Function Documentation

◆ computeConvexHull() [1/2]

unsigned int computeConvexHull ( const std::vector< const FilterStreamData *> &  data,
unsigned int *  progress,
std::vector< Point3D > &  hullPts,
bool  wantVolume,
bool  freeHull = true 
)

◆ computeConvexHull() [2/2]

unsigned int computeConvexHull ( const std::vector< Point3D > &  data,
unsigned int *  progress,
const bool &  abortPtr,
std::vector< Point3D > &  hullPts,
bool  wantVolume,
bool  freeHull = true 
)

◆ createTmpFilename()

std::string createTmpFilename ( const char *  dir = NULL,
const char *  extension = NULL 
)

References do2DDelaunay(), do3DDelaunay(), stlStr(), and TEST.

Referenced by readScalarsXML(), and SpatialAnalysisFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ do2DDelaunay()

unsigned int do2DDelaunay ( double *  bufXY,
unsigned int  n,
std::vector< size_t > &  ta,
std::vector< size_t > &  tb,
std::vector< size_t > &  tc 
)

References ASSERT, HULL_ERR_QHULL_NOINIT, and qhullInited.

Referenced by createTmpFilename(), readScalarsXML(), and VoxeliseFilter::refresh().

Here is the caller graph for this function:

◆ freeConvexHull()

void freeConvexHull ( )

References qhullInited.

Referenced by GetReducedHullPts(), readScalarsXML(), and IonInfoFilter::setPropFromBinding().

Here is the caller graph for this function:

◆ getIonstreamIonID()

unsigned int getIonstreamIonID ( const IonStreamData d,
const RangeFile r 
)

Referenced by Filter::buildSplitPoints(), and readScalarsXML().

Here is the caller graph for this function:

◆ getRangeFile()

const RangeFile* getRangeFile ( const std::vector< const FilterStreamData *> &  dataIn)

References ASSERT, and STREAM_TYPE_RANGE.

Referenced by readScalarsXML(), and SpatialAnalysisFilter::refresh().

Here is the caller graph for this function:

◆ getTotalSizeByType()

size_t getTotalSizeByType ( const std::vector< const FilterStreamData *> &  dataIn,
unsigned int  streamTypeMask 
)

Referenced by readScalarsXML(), and VoxeliseFilter::refresh().

Here is the caller graph for this function:

◆ makeColourBar()

DrawColourBarOverlay* makeColourBar ( float  minV,
float  maxV,
size_t  nColours,
size_t  colourMap,
bool  reverseMap = false,
float  alpha = 1.0f 
)

◆ parseXMLColour()

bool parseXMLColour ( xmlNodePtr &  nodePtr,
ColourRGBAf rgbaf 
)

◆ readIonsEnabledXML()

void readIonsEnabledXML ( xmlNodePtr  nodePtr,
vector< bool > &  enabledStatus,
vector< string > &  names 
)

References XMLGetAttrib(), and XMLHelpFwdToElem().

Referenced by SpatialAnalysisFilter::readState().

Here is the caller graph for this function:

◆ readScalarsXML()

template<class T >
bool readScalarsXML ( xmlNodePtr  nodePtr,
std::vector< T > &  scalarParams 
)

◆ readVectorsXML()

bool readVectorsXML ( xmlNodePtr  nodePtr,
std::vector< Point3D > &  vectorParams 
)

References stream_cast(), and XMLHelpFwdToElem().

Referenced by readScalarsXML(), IonClipFilter::readState(), TransformFilter::readState(), and SpatialAnalysisFilter::readState().

Here is the caller graph for this function:

◆ writeIonsEnabledXML()

void writeIonsEnabledXML ( std::ostream &  f,
const char *  containerName,
const std::vector< bool > &  enabledState,
const std::vector< std::string > &  names,
unsigned int  depth 
)

References tabs().

Referenced by ClusterAnalysisFilter::writeState(), and SpatialAnalysisFilter::writeState().

Here is the caller graph for this function:

◆ writeScalarsXML()

template<class T >
void writeScalarsXML ( std::ostream &  f,
const char *  containerName,
const std::vector< T > &  scalarParams,
unsigned int  depth 
)

◆ writeVectorsXML()

void writeVectorsXML ( std::ostream &  f,
const char *  containerName,
const std::vector< Point3D > &  vectorParams,
unsigned int  depth 
)

References tabs().

Referenced by IonClipFilter::writeState(), TransformFilter::writeState(), and SpatialAnalysisFilter::writeState().

Here is the caller graph for this function:

Variable Documentation

◆ PROGRESS_REDUCE

const size_t PROGRESS_REDUCE =5000