INET Framework for OMNeT++/OMNEST
|
Sets up an axis-aligned, unscaled coordinate system for children, canceling the effect of any transformation (scaling, rotation, etc.) inherited from ancestor figures. More...
#include <cPanelFigure.h>
Public Member Functions | |
Constructors, destructor, assignment. | |
cPanelFigure (const char *name=nullptr) | |
cPanelFigure (const cPanelFigure &other) | |
cPanelFigure & | operator= (const cPanelFigure &other) |
Redefined cObject and cFigure member functions. | |
virtual cPanelFigure * | dup () const override |
virtual std::string | str () const override |
virtual const char * | getRendererClassName () const override |
virtual void | updateParentTransform (Transform &transform) override |
virtual void | move (double dx, double dy) override |
virtual void | moveLocal (double dx, double dy) override |
Figure attributes | |
virtual const Point & | getPosition () const |
virtual void | setPosition (const Point &position) |
virtual const Point & | getAnchorPoint () const |
By default, the (0,0) point in cPanelFigure's coordinate system will be mapped to the given position (i.e. More... | |
virtual void | setAnchorPoint (const Point &anchorPoint) |
Protected Member Functions | |
virtual const char ** | getAllowedPropertyKeys () const override |
virtual void | parse (cProperty *property) override |
Private Member Functions | |
void | copy (const cPanelFigure &other) |
Private Attributes | |
Point | position |
Point | anchorPoint |
Sets up an axis-aligned, unscaled coordinate system for children, canceling the effect of any transformation (scaling, rotation, etc.) inherited from ancestor figures.
This allows pixel-based positioning of children, and makes them immune to zooming. The anchorPoint in the coordinate system is mapped to the position of the panel figure. Setting a transformation on the panel figure itself allows rotation, scaling, and skewing of the coordinate system. The anchorPoint is affected by this transformation.
The panel figure itself has no visual appearance.
|
inlineexplicit |
|
inline |
|
private |
|
inlineoverridevirtual |
|
overrideprotectedvirtual |
|
inlinevirtual |
By default, the (0,0) point in cPanelFigure's coordinate system will be mapped to the given position (i.e.
getPosition()) in the parent figure's coordinate system. By setting an anchorPoint, one can change (0,0) to an arbitrary point. E.g. by setting anchorPoint=(100,0), the (100,0) point will be mapped to the given position, i.e. panel contents will appear 100 pixels to the left (given there are no transforms set). The translation part of the local transform is cancelled out because the anchorPoint is subject to the transformation of the panel figure the same way as the child figures.
Referenced by copy().
|
inlinevirtual |
Referenced by copy().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
cPanelFigure & inet::cPanelFigure::operator= | ( | const cPanelFigure & | other | ) |
|
overrideprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
overridevirtual |
|
overridevirtual |
|
private |
|
private |