Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Sketch< T > Class Template ReferenceSmart pointers for referencing. More...
Inheritance diagram for Sketch< T >:
Detailed Descriptiontemplate<typename T>
|
Public Member Functions | |
Sketch (SketchSpace &_space, const std::string &_name="(no name)") | |
Constructor. Allocates a new SketchData<T> to hold the data. | |
Sketch (const std::string &_name, const SketchRoot &parent) | |
Constructor. Inherits parent and color information from parent sketch. | |
Sketch () | |
Dummy constructor, for use in vector construction. | |
Sketch (const Sketch &other) | |
Copy constructor, used in something like. | |
Sketch (const Sketch &other, const std::string &name, bool viewable) | |
Shallow copy constructor used by NEW_SKETCH and NEW_SKETCH_N. | |
virtual | ~Sketch () |
Destructor. Cleans up and decrements SketchData reference count. | |
Sketch (const std::string &name, SketchSpace &space) | |
Retrieve an existing sketch by name. | |
bool | isValid () const |
True if this Sketch actually points to a SketchData. | |
void | checkValid () const |
Print error message if Sketch fails isValid() test. | |
SketchData< T > * | operator-> () |
const SketchData< T > * | operator-> () const |
T & | operator[] (size_t idx) |
const T & | operator[] (size_t idx) const |
const Sketch< T > | operator[] (const Sketch< uint > &indirection) const |
when passed indirection matrix (e.g. idx_left) returns resampled Sketch | |
T & | operator() (size_t x, size_t y) |
const T & | operator() (size_t x, size_t y) const |
Sketch & | setIndices (const SketchIndices &indices, const T &value) |
void | bind (const Sketch &other) |
Make this sketch point to another sketch's SketchData. | |
Sketch & | operator= (const Sketch &other) |
Assignment operator: copies the pixels. | |
Sketch & | operator= (const T &value) |
Sets all pixels in the Sketch to the specified value. | |
Sketch< bool > | operator! () const |
Sketch< T > & | operator+= (const Sketch< T > &other) |
void | printVals () const |
operator Sketch< bool > () const | |
operator for implicitly or explicitly converting to Sketch<bool> | |
operator Sketch< uchar > () const | |
operator for implicity or explicitly converting to Sketch<uchar> | |
operator Sketch< usint > () const | |
operator for implicity or explicitly converting to Sketch<usint> | |
operator Sketch< uint > () const | |
operator for implicity or explicitly converting to Sketch<uint> | |
operator Sketch< float > () const | |
operator for implicity or explicitly converting to Sketch<float> | |
template<> | |
operator Sketch () const | |
template<> | |
operator Sketch () const | |
template<> | |
operator Sketch () const | |
Sketch< T > & | operator-= (const Sketch< T > &other) |
Sketch< T > & | operator*= (const Sketch< T > &other) |
Sketch< T > & | operator/= (const Sketch< T > &other) |
Sketch< T > & | operator+= (const T value) |
Sketch< T > & | operator-= (const T value) |
Sketch< T > & | operator*= (const T value) |
Sketch< T > & | operator/= (const T value) |
Sketch & | operator+= (const int value) |
Sketch & | operator-= (const int value) |
Sketch & | operator*= (const int value) |
Sketch & | operator/= (const int value) |
Public Attributes | |
int | width |
int | height |
SketchData< T > * | data |
The SketchData object referenced by this Sketch. | |
std::valarray< T > * | pixels |
The image resource for the Sketch, owned by the SketchData object. |
Sketch | ( | SketchSpace & | _space, | |
const std::string & | _name = "(no name)" | |||
) |
Sketch | ( | const std::string & | _name, | |
const SketchRoot & | parent | |||
) |
Sketch | ( | ) |
Copy constructor, used in something like.
Sketch<bool> image = original;
This is a shallow copy: it does not copy the underlying pixels.
Shallow copy constructor used by NEW_SKETCH and NEW_SKETCH_N.
~Sketch | ( | ) | [virtual] |
Destructor. Cleans up and decrements SketchData reference count.
Sketch | ( | const std::string & | name, | |
SketchSpace & | space | |||
) |
Make this sketch point to another sketch's SketchData.
void checkValid | ( | ) | const |
Print error message if Sketch fails isValid() test.
Definition at line 253 of file Sketch.h.
Referenced by Region::extractRegions(), Sketch< skindex >::operator()(), Sketch< skindex >::operator->(), Sketch< T >::operator=(), Sketch< T >::operator[](), Sketch< skindex >::operator[](), and Sketch< T >::setIndices().
bool isValid | ( | ) | const |
True if this Sketch actually points to a SketchData.
Definition at line 59 of file Sketch.h.
Referenced by Sketch< T >::checkValid(), and Sketch< T >::~Sketch().
operator for implicitly or explicitly converting to Sketch<bool>
operator for implicity or explicitly converting to Sketch<uchar>
const SketchData<T>* operator-> | ( | void | ) | const |
SketchData<T>* operator-> | ( | void | ) |
Sketch< T > & setIndices | ( | const SketchIndices & | indices, | |
const T & | value | |||
) |
Definition at line 274 of file Sketch.h.
Referenced by visops::bdist().
SketchData<T>* data |
The SketchData object referenced by this Sketch.
Definition at line 31 of file Sketch.h.
Referenced by Sketch< skindex >::isValid(), Sketch< skindex >::operator->(), Sketch< T >::operator[](), SketchRoot::rootGetData(), SketchRoot::rootGetSpace(), Sketch< T >::Sketch(), and Sketch< T >::~Sketch().
int height |
Definition at line 28 of file Sketch.h.
Referenced by BlobData::extractBlobs(), NaughtData::extractNaughts(), PointData::extractPoints(), EllipseData::render(), LineData::scanHorizForEndPts(), LineData::scanVertForEndPts(), Sketch< T >::Sketch(), and LineData::splitLine().
The image resource for the Sketch, owned by the SketchData object.
Definition at line 34 of file Sketch.h.
Referenced by visops::copy(), DualCoding::copyPixels(), DualCoding::DEF_MATHOPS_H(), BlobData::extractBlobs(), visops::ifNot(), visops::mask(), visops::maskedAssign(), visops::max(), visops::min(), DualCoding::operator&=(), Sketch< skindex >::operator()(), Sketch< T >::operator*=(), Sketch< T >::operator+=(), Sketch< T >::operator-=(), Sketch< T >::operator/=(), Sketch< T >::operator=(), Sketch< T >::operator[](), Sketch< skindex >::operator[](), Sketch< T >::printVals(), Sketch< T >::setIndices(), and Sketch< T >::Sketch().
int width |
Definition at line 28 of file Sketch.h.
Referenced by PolygonData::convexHull(), BlobData::extractBlobs(), PointData::extractPoints(), Sketch< skindex >::operator()(), Sketch< T >::printVals(), EllipseData::render(), LineData::scanHorizForEndPts(), LineData::scanVertForEndPts(), Sketch< T >::Sketch(), and LineData::splitLine().
DualCoding 5.1CVS |
Generated Mon May 9 04:56:31 2016 by Doxygen 1.6.3 |