Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
Sketch Class Template Reference#include <Sketch.h>
Inheritance diagram for Sketch:
![]() Detailed Descriptiontemplate<typename T>
Smart pointers for referencing.
|
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< uint > () const | |
operator for implicity or explicitly converting to Sketch<uint> | |
operator Sketch< float > () const | |
operator for implicity or explicitly converting to Sketch<float> | |
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)" | |||
) | [inline] |
Sketch | ( | const std::string & | _name, | |
const SketchRoot & | parent | |||
) | [inline] |
Sketch | ( | ) | [inline] |
~Sketch | ( | ) | [inline, virtual] |
Destructor. Cleans up and decrements SketchData reference count.
Sketch | ( | const std::string & | name, | |
SketchSpace & | space | |||
) | [inline] |
bool isValid | ( | ) | const [inline] |
True if this Sketch actually points to a SketchData.
Definition at line 59 of file Sketch.h.
Referenced by Sketch::bind(), Sketch::checkValid(), Sketch::operator=(), Sketch::Sketch(), and Sketch::~Sketch().
void checkValid | ( | ) | const [inline] |
Print error message if Sketch fails isValid() test.
Definition at line 250 of file Sketch.h.
Referenced by Sketch< uint >::operator()(), Sketch< uint >::operator->(), Sketch::operator=(), Sketch::operator[](), Sketch< uint >::operator[](), and Sketch::setIndices().
SketchData<T>* operator-> | ( | void | ) | [inline] |
const SketchData<T>* operator-> | ( | void | ) | const [inline] |
Sketch< T > & setIndices | ( | const SketchIndices & | indices, | |
const T & | value | |||
) | [inline] |
void bind | ( | const Sketch< T > & | other | ) | [inline] |
Make this sketch point to another sketch's SketchData.
Definition at line 277 of file Sketch.h.
Referenced by visops::fillin(), visops::labelcc(), Sketch::operator=(), and Lookout::processPointAtEvent().
Sketch< T > & operator= | ( | const T & | value | ) | [inline] |
operator for implicitly or explicitly converting to Sketch<bool>
operator for implicity or explicitly converting to Sketch<uchar>
operator for implicity or explicitly converting to Sketch<uint>
operator Sketch< float > | ( | ) | const [inline] |
int width |
Definition at line 28 of file Sketch.h.
Referenced by LineData::balanceEndPointVert(), Sketch::bind(), PolygonData::convexHull(), visops::convolve(), DualCoding::countBorderPixelFit(), BlobData::extractBlobs(), PointData::extractPoints(), visops::labelcc(), visops::oldlabelcc(), Sketch< uint >::operator()(), Sketch::printVals(), EllipseData::render(), LineData::scanHorizForEndPts(), LineData::scanVertForEndPts(), Sketch::Sketch(), and visops::templateMatch().
int height |
Definition at line 28 of file Sketch.h.
Referenced by LineData::balanceEndPointVert(), Sketch::bind(), visops::convolve(), DualCoding::countBorderPixelFit(), BlobData::extractBlobs(), PointData::extractPoints(), visops::labelcc(), visops::oldlabelcc(), EllipseData::render(), LineData::scanHorizForEndPts(), LineData::scanVertForEndPts(), Sketch::Sketch(), and visops::templateMatch().
SketchData<T>* data |
The SketchData object referenced by this Sketch.
Definition at line 31 of file Sketch.h.
Referenced by Sketch::bind(), Sketch< uint >::isValid(), Sketch< uint >::operator->(), Sketch::operator=(), Sketch::operator[](), SketchRoot::rootGetData(), SketchRoot::rootGetSpace(), Sketch::Sketch(), and Sketch::~Sketch().
std::valarray<T>* pixels |
The image resource for the Sketch, owned by the SketchData object.
Definition at line 34 of file Sketch.h.
Referenced by Sketch::bind(), visops::copy(), DualCoding::copyPixels(), DualCoding::DEF_MATHOPS_H(), BlobData::extractBlobs(), visops::ifNot(), visops::labelcc(), visops::mask(), visops::maskedAssign(), visops::max(), visops::min(), DualCoding::operator &=(), Sketch::operator *=(), Sketch< uint >::operator()(), Sketch::operator+=(), Sketch::operator-=(), Sketch::operator/=(), Sketch::operator=(), Sketch::operator[](), Sketch< uint >::operator[](), DualCoding::operator^=(), DualCoding::operator|=(), Sketch::printVals(), Sketch::setIndices(), Sketch::Sketch(), and visops::zeros().
DualCoding 4.0 |
Generated Thu Nov 22 00:54:06 2007 by Doxygen 1.5.4 |