|
PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
|
#include <PDrawObject.h>
Public Member Functions | |
| PDrawObject () | |
| virtual | ~PDrawObject () |
| virtual void | SetFilled (bool filled) |
| virtual void | SetColor (Variant col) |
| virtual void | SetOutlineColor (Variant ocol) |
| virtual void | SetAA (bool aa) |
| virtual bool | SetProperty (std::string, Variant v) |
| virtual Variant | GetProperty (std::string) const |
| virtual ObjectValidationError | ValidateProperty (std::string, Variant v) const |
| virtual ObjectValidationError | ValidateProperty (std::string) const |
Public Member Functions inherited from PWidget | |
| PWidget () | |
| PWidget (const PWidget &pw) | |
| PWidget (pInt x, pInt y, pInt width, pInt height, bool visible) | |
| virtual | ~PWidget () |
| virtual bool | RotoZoom (pDouble angle, pDouble zoomx, pDouble zoomy, pInt smooth) |
| virtual bool | SetPoint (pInt x, pInt y, PColor col) |
| virtual PColor | GetPixel (pInt x, pInt y) |
| virtual void | SetParent (PWidget *widget) |
| This unconditionally sets the parent widget. | |
| virtual PWidget * | GetParent () |
| virtual bool | IsParent (PWidget *parent) |
| virtual bool | Draw () |
| virtual void | SetPosition (pInt x, pInt y) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetZoomX (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetZoomY (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetRotation (pDouble x) |
| This sets the widget's position on its parent widget. | |
| virtual void | SetWidth (pInt w) |
| virtual void | SetHeight (pInt h) |
| virtual pInt | GetX () const |
| virtual pInt | GetY () const |
| virtual pInt | GetWidth () const |
| virtual pInt | GetHeight () const |
| virtual void | SetBackgroundColor (const PColor &color) |
| virtual PColor | GetBackgroundColor () |
| virtual bool | AddSubWidget (PWidget *widget) |
| virtual bool | RemoveSubWidget (PWidget *widget) |
| virtual bool | RemoveSubWidgets () |
| virtual bool | RemoveLastSubWidget () |
| This is probably pretty useless. | |
| virtual void | Show () |
| virtual void | Hide () |
| virtual bool | IsVisible () const |
| virtual std::string | ObjectName () const |
Public Member Functions inherited from PEBLObjectBase | |
| PEBLObjectBase () | |
| Standard Constructor. | |
| PEBLObjectBase (ComplexDataType cdt) | |
| Standard Constructor. | |
| PEBLObjectBase (const PEBLObjectBase &pob) | |
| virtual | ~PEBLObjectBase () |
| Standard Destructor. | |
| virtual bool | InitializeProperty (std::string name, Variant v) |
| Variant | GetProperty (std::string) const |
| ComplexDataType | GetType () |
| virtual std::ostream & | PrintProperties (std::ostream &out) |
| virtual Variant | GetPropertyList () |
Protected Member Functions | |
| virtual std::ostream & | SendToStream (std::ostream &out) const =0 |
| An inheritable printing class used by PEBLObjectBase::operator<<. | |
| PColor * | GetColor () const |
| PColor * | GetOutlineColor () const |
Protected Attributes | |
| bool | mFilled |
| bool | mAntiAliased |
Protected Attributes inherited from PWidget | |
| pInt | mX |
| pInt | mY |
| pInt | mDrawX |
| pInt | mDrawY |
| pInt | mWidth |
| pInt | mHeight |
| pDouble | mZoomX |
| pDouble | mZoomY |
| pDouble | mRotation |
| PColor | mBackgroundColor |
| The background color of the widget. if alpha = 0, will not be painted. | |
| std::list< PWidget * > | mSubWidgets |
| bool | mIsVisible |
| PWidget * | mParent |
Protected Attributes inherited from PEBLObjectBase | |
| ComplexDataType | mCDT |
| std::map< std::string, Variant > | mProperties |
Definition at line 39 of file PDrawObject.h.
| PDrawObject::PDrawObject | ( | ) |
Definition at line 37 of file PDrawObject.cpp.
References PEBLObjectBase::InitializeProperty(), and SetAA().
|
virtual |
Definition at line 48 of file PDrawObject.cpp.
|
protected |
Definition at line 148 of file PDrawObject.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetObject(), and PEBLObjectBase::GetProperty().
Referenced by PlatformLine::Draw(), PlatformThickLine::Draw(), PlatformRectangle::Draw(), PlatformSquare::Draw(), PlatformEllipse::Draw(), PlatformCircle::Draw(), PlatformPolygon::Draw(), and PlatformBezier::Draw().
|
protected |
Definition at line 156 of file PDrawObject.cpp.
References counted_ptr< X >::get(), Variant::GetComplexData(), PComplexData::GetObject(), and PEBLObjectBase::GetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PLine, PThickLine, PRectangle, PSquare, PEllipse, PCircle, PPolygon, and PBezier.
Definition at line 92 of file PDrawObject.cpp.
References PEBLObjectBase::GetProperty().
|
protectedpure virtual |
An inheritable printing class used by PEBLObjectBase::operator<<.
Reimplemented from PWidget.
Implemented in PlatformLine, PlatformThickLine, PlatformRectangle, PlatformSquare, PlatformEllipse, PlatformCircle, PlatformPolygon, PlatformBezier, PlatformLine, PlatformThickLine, PlatformRectangle, PlatformSquare, PlatformEllipse, PlatformCircle, PlatformPolygon, and PlatformBezier.
|
virtual |
Definition at line 129 of file PDrawObject.cpp.
References mAntiAliased, and PEBLObjectBase::SetProperty().
Referenced by PDrawObject(), PEllipse::PEllipse(), PLine::PLine(), PPolygon::PPolygon(), PThickLine::PThickLine(), and SetProperty().
|
virtual |
Definition at line 137 of file PDrawObject.cpp.
References PEBLObjectBase::SetProperty().
Referenced by PBezier::PBezier(), PCircle::PCircle(), PEllipse::PEllipse(), PLine::PLine(), PPolygon::PPolygon(), PRectangle::PRectangle(), PThickLine::PThickLine(), and SetProperty().
|
virtual |
Definition at line 123 of file PDrawObject.cpp.
References mFilled, and PEBLObjectBase::SetProperty().
Referenced by PCircle::PCircle(), PEllipse::PEllipse(), PPolygon::PPolygon(), PRectangle::PRectangle(), and SetProperty().
|
virtual |
Definition at line 142 of file PDrawObject.cpp.
References PEBLObjectBase::SetProperty().
Referenced by PBezier::PBezier(), PCircle::PCircle(), PEllipse::PEllipse(), PPolygon::PPolygon(), PRectangle::PRectangle(), and SetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformLine, PlatformThickLine, PlatformRectangle, PlatformSquare, PlatformEllipse, PlatformCircle, PlatformPolygon, PlatformBezier, PLine, PThickLine, PRectangle, PSquare, PEllipse, PCircle, PPolygon, and PBezier.
Definition at line 53 of file PDrawObject.cpp.
References SetAA(), SetColor(), SetFilled(), SetOutlineColor(), and PWidget::SetProperty().
Referenced by PLine::SetProperty(), PThickLine::SetProperty(), PRectangle::SetProperty(), PSquare::SetProperty(), PEllipse::SetProperty(), PCircle::SetProperty(), PPolygon::SetProperty(), and PBezier::SetProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformLine, PlatformThickLine, PlatformRectangle, PlatformSquare, PlatformEllipse, PlatformCircle, PlatformPolygon, PlatformBezier, PLine, PThickLine, PRectangle, PSquare, PEllipse, PCircle, PPolygon, and PBezier.
Definition at line 104 of file PDrawObject.cpp.
References OVE_INVALID_PROPERTY_NAME, OVE_VALID, and PWidget::ValidateProperty().
|
virtual |
Reimplemented from PWidget.
Reimplemented in PlatformLine, PlatformThickLine, PlatformRectangle, PlatformSquare, PlatformEllipse, PlatformCircle, PlatformPolygon, PlatformBezier, PLine, PThickLine, PRectangle, PSquare, PEllipse, PCircle, PPolygon, and PBezier.
Definition at line 99 of file PDrawObject.cpp.
References ValidateProperty().
Referenced by PLine::ValidateProperty(), PThickLine::ValidateProperty(), PRectangle::ValidateProperty(), PSquare::ValidateProperty(), PEllipse::ValidateProperty(), PCircle::ValidateProperty(), PPolygon::ValidateProperty(), PBezier::ValidateProperty(), and ValidateProperty().
|
protected |
Definition at line 69 of file PDrawObject.h.
Referenced by PlatformLine::Draw(), PlatformEllipse::Draw(), PlatformCircle::Draw(), PlatformPolygon::Draw(), and SetAA().
|
protected |
Definition at line 68 of file PDrawObject.h.
Referenced by PlatformRectangle::Draw(), PlatformSquare::Draw(), PlatformEllipse::Draw(), PlatformCircle::Draw(), PlatformPolygon::Draw(), and SetFilled().