#include <GraphicElement.h>

Public Member Functions | |
| virtual GraphicGroup * | getGroup ()=0 |
| virtual const GraphicGroup * | getGroup () const =0 |
| virtual void | setInteractive (bool interactive)=0 |
| virtual bool | getInteractive () const =0 |
| virtual bool | setGeocentric (bool geocentric)=0 |
| virtual bool | getGeocentric () const =0 |
Protected Member Functions | |
| virtual | ~GraphicElement () |
This subclass of Subject will notify upon the following conditions: * Any graphic object within the element is modified. * The geocentricity of the element is modified via setGeocentric(). * Everything documented in DataElement.
Definition at line 26 of file GraphicElement.h.
| virtual GraphicElement::~GraphicElement | ( | ) | [protected, virtual] |
This should be destroyed by calling ModelServices::destroyElement.
Definition at line 109 of file GraphicElement.h.
| virtual GraphicGroup* GraphicElement::getGroup | ( | ) | [pure virtual] |
Get the group which contains the all vector objects in the element.
| virtual const GraphicGroup* GraphicElement::getGroup | ( | ) | const [pure virtual] |
Get the group which contains the all vector objects in the element.
| virtual void GraphicElement::setInteractive | ( | bool | interactive | ) | [pure virtual] |
Sets whether modifications made are interactive or programmatic.
For efficiency, it is sometimes useful to prevent refreshes and updates when a large amount of modifications are made to the layer.
| interactive | Determines whether to go into interactive or batch mode. If a value of false is passed in, all refreshes are delayed until the method is called again with a true value. |
| virtual bool GraphicElement::getInteractive | ( | ) | const [pure virtual] |
Gets whether modifications made are interactive or programmatic.
| virtual bool GraphicElement::setGeocentric | ( | bool | geocentric | ) | [pure virtual] |
Sets whether graphic objects within this graphic element are geocentric in nature.
This method obtains georeferencing information from the element's parent and updates the bounding box locations of all graphic objects in the element to include latitude/longitude coordinates in addition to pixel coordinates.
After calling this method GraphicObject::getLlCorner() and GraphicObject::getUrCorner() will continue to return pixel coordinate locations.
| geocentric | Whether the GraphicObjects are geocentric. |
true if the operation succeeded; false otherwise. The operation will fail if this element's parent is not a georeferenced RasterElement.| virtual bool GraphicElement::getGeocentric | ( | ) | const [pure virtual] |
Gets whether graphic objects within this graphic element are geocentric in nature.
true if the graphic objects is this element are geocentric; false otherwise.