|
3Depict
|
#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>

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 RangeFile * | getRangeFile (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 () |
| DrawColourBarOverlay * | makeColourBar (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 |
| anonymous enum |
| unsigned int computeConvexHull | ( | const std::vector< const FilterStreamData *> & | data, |
| unsigned int * | progress, | ||
| std::vector< Point3D > & | hullPts, | ||
| bool | wantVolume, | ||
| bool | freeHull = true |
||
| ) |
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 std::vector< Point3D > & | data, |
| unsigned int * | progress, | ||
| const bool & | abortPtr, | ||
| std::vector< Point3D > & | hullPts, | ||
| bool | wantVolume, | ||
| bool | freeHull = true |
||
| ) |
References doHull(), HULL_ERR_NO_MEM, HULL_ERR_USER_ABORT, HULL_GRAB_SIZE, Point3D::sqrDist(), and Filter::wantAbort.
| std::string createTmpFilename | ( | const char * | dir = NULL, |
| const char * | extension = NULL |
||
| ) |
References do2DDelaunay(), do3DDelaunay(), stlStr(), and TEST.
Referenced by readScalarsXML(), and SpatialAnalysisFilter::setPropFromBinding().

| 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().

| void freeConvexHull | ( | ) |
References qhullInited.
Referenced by GetReducedHullPts(), readScalarsXML(), and IonInfoFilter::setPropFromBinding().

| unsigned int getIonstreamIonID | ( | const IonStreamData * | d, |
| const RangeFile * | r | ||
| ) |
Referenced by Filter::buildSplitPoints(), and readScalarsXML().

| 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 = false, |
||
| float | alpha = 1.0f |
||
| ) |
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 & | rgbaf | ||
| ) |
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 > & | names | ||
| ) |
References XMLGetAttrib(), and XMLHelpFwdToElem().
Referenced by SpatialAnalysisFilter::readState().

| bool readScalarsXML | ( | xmlNodePtr | nodePtr, |
| std::vector< T > & | scalarParams | ||
| ) |
References computeConvexHull(), createTmpFilename(), do2DDelaunay(), extension, freeConvexHull(), getIonstreamIonID(), getRangeFile(), getTotalSizeByType(), makeColourBar(), parseXMLColour(), readVectorsXML(), stream_cast(), and XMLHelpFwdToElem().
Referenced by IonClipFilter::readState(), TransformFilter::readState(), IonDownsampleFilter::readState(), and 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 | ( | 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().

| void writeScalarsXML | ( | std::ostream & | f, |
| const char * | containerName, | ||
| const std::vector< T > & | scalarParams, | ||
| unsigned int | depth | ||
| ) |
References tabs().
Referenced by IonClipFilter::writeState(), TransformFilter::writeState(), IonDownsampleFilter::writeState(), and SpatialAnalysisFilter::writeState().

| 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().

| const size_t PROGRESS_REDUCE =5000 |
1.8.13