Field3D
|
Contains Field, WritableField and ResizableField classes. More...
#include <cmath>
#include <vector>
#include <map>
#include <boost/intrusive_ptr.hpp>
#include <boost/thread/mutex.hpp>
#include "Traits.h"
#include "Exception.h"
#include "FieldMapping.h"
#include "FieldMetadata.h"
#include "Log.h"
#include "RefCount.h"
#include "Types.h"
#include "ns.h"
Go to the source code of this file.
Classes | |
class | Field< Data_T > |
class | Field< Data_T >::const_iterator |
class | FieldBase |
class | FieldRes |
class | ResizableField< Data_T > |
class | WritableField< Data_T > |
class | WritableField< Data_T >::iterator |
Namespaces | |
namespace | Exc |
Namespace for Exception objects. | |
Macros | |
#define | FIELD3D_CLASSNAME_CLASSTYPE_IMPLEMENTATION |
#define | FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION(field) |
Functions | |
template<class Iter_T > | |
void | advance (Iter_T &iter, int num) |
template<class Iter_T > | |
void | advance (Iter_T &iter, int num, const Iter_T &end) |
Box3i | clipBounds (const Box3i &bbox, const Box3i &bounds) |
Box3d | continuousBounds (const Box3i &bbox) |
V2i | contToDisc (const V2d &contCoord) |
Goes from continuous coords to discrete for a 2-vector. | |
V3i | contToDisc (const V3d &contCoord) |
Goes from continuous coords to discrete for a 3-vector. | |
int | contToDisc (double contCoord) |
Goes from continuous coordinates to discrete coordinates See Graphics Gems - What is a pixel. | |
Box3i | discreteBounds (const Box3d &bbox) |
Converts a floating point bounding box to an integer bounding box. | |
V2d | discToCont (const V2i &discCoord) |
Goes from discrete coords to continuous for a 2-vector. | |
V3d | discToCont (const V3i &discCoord) |
Goes from discrete coords to continuous for a 3-vector. | |
double | discToCont (int discCoord) |
Goes from discrete coordinates to continuous coordinates See Graphics Gems - What is a pixel. | |
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION (Field) | |
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION (ResizableField) | |
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION (WritableField) | |
V3i | indexToCoord (const size_t idx, const V3i &res) |
template<class Data_T > | |
bool | isIdentical (typename Field< Data_T >::Ptr a, typename Field< Data_T >::Ptr b) |
Checks whether the span and data in two different fields are identical. | |
template<class Data_T , class Data_T2 > | |
bool | sameDefinition (typename Field< Data_T >::Ptr a, typename Field< Data_T2 >::Ptr b, double tolerance=0.0) |
Checks whether the mapping and resolution in two different fields are identical. | |
Contains Field, WritableField and ResizableField classes.
Definition in file Field.h.
#define FIELD3D_CLASSNAME_CLASSTYPE_IMPLEMENTATION |
Definition at line 473 of file Field.h.
#define FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION | ( | field | ) |
Definition at line 479 of file Field.h.
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION | ( | Field | ) |
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION | ( | WritableField | ) |
FIELD3D_CLASSTYPE_TEMPL_INSTANTIATION | ( | ResizableField | ) |
bool sameDefinition | ( | typename Field< Data_T >::Ptr | a, |
typename Field< Data_T2 >::Ptr | b, | ||
double | tolerance = 0.0 ) |
Checks whether the mapping and resolution in two different fields are identical.
Definition at line 1016 of file Field.h.
References FieldRes::dataWindow(), FieldRes::extents(), and FieldRes::mapping().
Referenced by isIdentical().
bool isIdentical | ( | typename Field< Data_T >::Ptr | a, |
typename Field< Data_T >::Ptr | b ) |
Checks whether the span and data in two different fields are identical.
Definition at line 1037 of file Field.h.
References Field< Data_T >::cbegin(), Field< Data_T >::cend(), and sameDefinition().
|
inline |
Goes from continuous coordinates to discrete coordinates See Graphics Gems - What is a pixel.
Definition at line 1061 of file Field.h.
Referenced by contToDisc(), and contToDisc().
|
inline |
Goes from discrete coordinates to continuous coordinates See Graphics Gems - What is a pixel.
Definition at line 1070 of file Field.h.
Referenced by FrustumFieldMapping::computeVoxelSize(), discToCont(), discToCont(), detail::MIPSeparableThreadOp< Field_T, FilterOp_T, IsAnalytic_T >::operator()(), and detail::separable().
Goes from continuous coords to discrete for a 2-vector.
Definition at line 1078 of file Field.h.
References contToDisc().
Goes from discrete coords to continuous for a 2-vector.
Definition at line 1086 of file Field.h.
References discToCont().
Goes from continuous coords to discrete for a 3-vector.
Definition at line 1094 of file Field.h.
References contToDisc().
Goes from discrete coords to continuous for a 3-vector.
Definition at line 1103 of file Field.h.
References discToCont().
Definition at line 1111 of file Field.h.
Referenced by blockCoords().
Converts a floating point bounding box to an integer bounding box.
Definition at line 1128 of file Field.h.
References clampForType().
Referenced by FieldSampler< WrapperVec_T, Dims_T >::getMinMax(), FieldSampler< WrapperVec_T, Dims_T >::getMinMaxMIP(), and FieldSampler< WrapperVec_T, Dims_T >::getMinMaxPrefilt().
Definition at line 1145 of file Field.h.
Referenced by detail::checkInputEmpty(), SparseField< Data_T >::getGrainBounds(), FieldSampler< WrapperVec_T, Dims_T >::getMinMax(), FieldSampler< WrapperVec_T, Dims_T >::getMinMaxMIP(), and FieldSampler< WrapperVec_T, Dims_T >::getMinMaxPrefilt().
Definition at line 1187 of file Field.h.
Referenced by SparseField< Data_T >::getGrainBounds().