GraphicElement Class Reference

GraphicElement is a model class used for vector-based graphical data. More...

#include <GraphicElement.h>

Inheritance diagram for GraphicElement:

Inheritance graph

List of all members.

Public Member Functions

virtual GraphicGroupgetGroup ()=0
virtual const GraphicGroupgetGroup () 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 ()


Detailed Description

GraphicElement is a model class used for vector-based graphical data.

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.


Constructor & Destructor Documentation

virtual GraphicElement::~GraphicElement (  )  [protected, virtual]

This should be destroyed by calling ModelServices::destroyElement.

Definition at line 109 of file GraphicElement.h.


Member Function Documentation

virtual GraphicGroup* GraphicElement::getGroup (  )  [pure virtual]

Get the group which contains the all vector objects in the element.

Returns:
The associated GraphicGroup.

virtual const GraphicGroup* GraphicElement::getGroup (  )  const [pure virtual]

Get the group which contains the all vector objects in the element.

Returns:
The associated GraphicGroup.

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.

Parameters:
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.
See also:
getInteractive()

virtual bool GraphicElement::getInteractive (  )  const [pure virtual]

Gets whether modifications made are interactive or programmatic.

Returns:
The current state of the interactive flag.
See also:
setInteractive()

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.

Parameters:
geocentric Whether the GraphicObjects are geocentric.
Returns:
Returns true if the operation succeeded; false otherwise. The operation will fail if this element's parent is not a georeferenced RasterElement.
Subject Notifications:
This method will notify with Subject::signalModified() if the graphic objects are successfully set as geocentric.
See also:
getGeocentric()

virtual bool GraphicElement::getGeocentric (  )  const [pure virtual]

Gets whether graphic objects within this graphic element are geocentric in nature.

Returns:
Returns true if the graphic objects is this element are geocentric; false otherwise.
See also:
setGeocentric()


Software Development Kit - Opticks 4.9.0 Build 16218