3Depict
|
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 RangeFile * | getRangeFile (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 () |
DrawColourBarOverlay * | makeColourBar (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 |
unsigned int computeConvexHull | ( | const vector< const FilterStreamData *> & | data, |
unsigned int * | progress, | ||
std::vector< Point3D > & | curHull, | ||
bool | wantVolume, | ||
bool | freeHull | ||
) |
References IonStreamData::data, doHull(), HULL_ERR_NO_MEM, HULL_ERR_USER_ABORT, HULL_GRAB_SIZE, numElements(), Point3D::sqrDist(), STREAM_TYPE_IONS, and Filter::wantAbort.
Referenced by GetReducedHullPts(), readScalarsXML(), and IonInfoFilter::setPropFromBinding().
unsigned int computeConvexHull | ( | const vector< Point3D > & | data, |
unsigned int * | progress, | ||
const bool & | abortPtr, | ||
std::vector< Point3D > & | curHull, | ||
bool | wantVolume, | ||
bool | freeHull | ||
) |
References doHull(), HULL_ERR_NO_MEM, HULL_ERR_USER_ABORT, HULL_GRAB_SIZE, Point3D::sqrDist(), and Filter::wantAbort.
std::string createTmpFilename | ( | const char * | dir, |
const char * | extension | ||
) |
References do2DDelaunay(), do3DDelaunay(), stlStr(), and TEST.
Referenced by readScalarsXML(), and SpatialAnalysisFilter::setPropFromBinding().
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().
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().
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().
void freeConvexHull | ( | ) |
References qhullInited.
Referenced by GetReducedHullPts(), readScalarsXML(), and IonInfoFilter::setPropFromBinding().
const RangeFile* getRangeFile | ( | const std::vector< const FilterStreamData *> & | dataIn | ) |
References ASSERT, and STREAM_TYPE_RANGE.
Referenced by readScalarsXML(), and SpatialAnalysisFilter::refresh().
size_t getTotalSizeByType | ( | const std::vector< const FilterStreamData *> & | dataIn, |
unsigned int | streamTypeMask | ||
) |
Referenced by readScalarsXML(), and VoxeliseFilter::refresh().
DrawColourBarOverlay* makeColourBar | ( | float | minV, |
float | maxV, | ||
size_t | nColours, | ||
size_t | colourMap, | ||
bool | reverseMap, | ||
float | alpha | ||
) |
References colourMapWrap(), DrawableOverlay::setAlpha(), DrawColourBarOverlay::setColourVec(), DrawColourBarOverlay::setMinMax(), DrawableOverlay::setPosition(), and DrawableOverlay::setSize().
Referenced by readScalarsXML(), IonColourFilter::refresh(), and VoxeliseFilter::refresh().
bool parseXMLColour | ( | xmlNodePtr & | nodePtr, |
ColourRGBAf & | rgba | ||
) |
References ColourRGBAf::a(), ColourRGBAf::b(), ColourRGBAf::g(), ColourRGBAf::r(), and stream_cast().
Referenced by readScalarsXML(), BoundingBoxFilter::readState(), SpectrumPlotFilter::readState(), ProfileFilter::readState(), VoxeliseFilter::readState(), DataLoadFilter::readState(), and SpatialAnalysisFilter::readState().
void readIonsEnabledXML | ( | xmlNodePtr | nodePtr, |
vector< bool > & | enabledStatus, | ||
vector< string > & | ionNames | ||
) |
References XMLGetAttrib(), and XMLHelpFwdToElem().
Referenced by SpatialAnalysisFilter::readState().
bool readVectorsXML | ( | xmlNodePtr | nodePtr, |
std::vector< Point3D > & | vectorParams | ||
) |
References stream_cast(), and XMLHelpFwdToElem().
Referenced by readScalarsXML(), IonClipFilter::readState(), TransformFilter::readState(), and SpatialAnalysisFilter::readState().
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().
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().
const unsigned int HULL_GRAB_SIZE =4096 |
Referenced by computeConvexHull().
bool qhullInited =false |
Referenced by do2DDelaunay(), do3DDelaunay(), doHull(), and freeConvexHull().