3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions | Variables
filterCommon.cpp File Reference
#include "filterCommon.h"
#include "common/colourmap.h"
#include "wx/wxcommon.h"
Include dependency graph for filterCommon.cpp:

Functions

unsigned int doHull (unsigned int bufferSize, double *buffer, vector< Point3D > &resHull, Point3D &midPoint, bool wantVolume, bool freeHullOnExit)
 
void writeVectorsXML (ostream &f, const char *containerName, const vector< Point3D > &vectorParams, unsigned int depth)
 
void writeIonsEnabledXML (ostream &f, const char *containerName, const vector< bool > &enabledState, const vector< string > &names, unsigned int depth)
 
void readIonsEnabledXML (xmlNodePtr nodePtr, vector< bool > &enabledStatus, vector< string > &ionNames)
 
bool readVectorsXML (xmlNodePtr nodePtr, std::vector< Point3D > &vectorParams)
 
bool parseXMLColour (xmlNodePtr &nodePtr, ColourRGBAf &rgba)
 
const RangeFilegetRangeFile (const std::vector< const FilterStreamData *> &dataIn)
 
size_t getTotalSizeByType (const std::vector< const FilterStreamData *> &dataIn, unsigned int streamTypeMask)
 
unsigned int computeConvexHull (const vector< const FilterStreamData *> &data, unsigned int *progress, std::vector< Point3D > &curHull, bool wantVolume, bool freeHull)
 
unsigned int computeConvexHull (const vector< Point3D > &data, unsigned int *progress, const bool &abortPtr, std::vector< Point3D > &curHull, bool wantVolume, bool freeHull)
 
unsigned int do3DDelaunay (vector< Point3D > &pts, vector< size_t > &ta, vector< size_t > &tb, vector< size_t > &tc)
 
unsigned int do2DDelaunay (double *bufXY, unsigned int n, vector< size_t > &ta, vector< size_t > &tb, vector< size_t > &tc)
 
void freeConvexHull ()
 
DrawColourBarOverlaymakeColourBar (float minV, float maxV, size_t nColours, size_t colourMap, bool reverseMap, float alpha)
 
std::string createTmpFilename (const char *dir, const char *extension)
 

Variables

const unsigned int HULL_GRAB_SIZE =4096
 
bool qhullInited =false
 

Function Documentation

◆ computeConvexHull() [1/2]

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

◆ computeConvexHull() [2/2]

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

◆ createTmpFilename()

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

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,
vector< size_t > &  ta,
vector< size_t > &  tb,
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:

◆ do3DDelaunay()

unsigned int do3DDelaunay ( vector< Point3D > &  pts,
vector< size_t > &  ta,
vector< size_t > &  tb,
vector< size_t > &  tc 
)

References ASSERT, HULL_ERR_QHULL_NOINIT, and qhullInited.

Referenced by createTmpFilename().

Here is the caller graph for this function:

◆ doHull()

unsigned int doHull ( unsigned int  bufferSize,
double *  buffer,
vector< Point3D > &  resHull,
Point3D midPoint,
bool  wantVolume,
bool  freeHullOnExit 
)

References HULL_ERR_NO_MEM, HULL_ERR_QHULL_NOINIT, and qhullInited.

Referenced by computeConvexHull().

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:

◆ 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,
float  alpha 
)

◆ parseXMLColour()

bool parseXMLColour ( xmlNodePtr &  nodePtr,
ColourRGBAf rgba 
)

◆ readIonsEnabledXML()

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

References XMLGetAttrib(), and XMLHelpFwdToElem().

Referenced by SpatialAnalysisFilter::readState().

Here is the caller graph for this function:

◆ 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 ( ostream &  f,
const char *  containerName,
const vector< bool > &  enabledState,
const vector< string > &  names,
unsigned int  depth 
)

References tabs().

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

Here is the caller graph for this function:

◆ writeVectorsXML()

void writeVectorsXML ( ostream &  f,
const char *  containerName,
const 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

◆ HULL_GRAB_SIZE

const unsigned int HULL_GRAB_SIZE =4096

Referenced by computeConvexHull().

◆ qhullInited

bool qhullInited =false