WedgeDD.h

Classes

WedgeDD -- A DisplayData to draw color wedges (full description)

class WedgeDD : public ActiveCaching2dDD

Interface

Public Members
WedgeDD()
virtual ~WedgeDD()
virtual void setup()
virtual void updateCsys()
virtual Bool labelAxes(const WCRefreshEvent &ev)
virtual const Unit dataUnit()
virtual String showValue(const Vector<Double> &world)
virtual void setDefaultOptions()
virtual Bool setOptions(Record &rec, Record &recOut)
virtual Record getOptions()
virtual Display::DisplayDataType classType()
virtual CachingDisplayMethod *newDisplayMethod(WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)
virtual AttributeBuffer optionsAsAttributes()
virtual void notifyUnregister(WorldCanvasHolder& wcHolder, Bool ignoreRefresh = False)
Protected Members
WedgeDD(const WedgeDD &other)
void operator=(const WedgeDD &other)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

This DisplayData can be created by itself. It's main task though is to set up a coordinate system form the data range and units of another DisplayData. The user can control this through options in this DisplayData: "datamin", "datamax, "dataunit" and "powercycles".

Example


 

Motivation

Users want wedges

To Do

Member Description

WedgeDD()

virtual ~WedgeDD()

Destructor.

virtual void setup()

Constructor help function, creates coordinatesystem and fills data Matrix

virtual void updateCsys()

The coordinate sydtem needs to be update when the data range changes

virtual Bool labelAxes(const WCRefreshEvent &ev)

Axis labeller, 5th step in the WCHolder refresh cycle

virtual const Unit dataUnit()

Return the data unit.

virtual String showValue(const Vector<Double> &world)

Format the wedge value at the given world position.

virtual void setDefaultOptions()

Install the default options for this DisplayData.

virtual Bool setOptions(Record &rec, Record &recOut)

Apply options stored in rec to the DisplayData. A return value of True means a refresh is needed. recOut contains any fields which were implicitly changed as a result of the call to this function.

virtual Record getOptions()

Retrieve the current and default options and parameter types.

virtual Display::DisplayDataType classType()

Return the type of this DisplayData.

virtual CachingDisplayMethod *newDisplayMethod(WorldCanvas *worldCanvas, AttributeBuffer *wchAttributes, AttributeBuffer *ddAttributes, CachingDisplayData *dd)

Create a new AxesDisplayMethod for drawing on the given WorldCanvas when the AttributeBuffers are suitably matched to the current state of this DisplayData and of the WorldCanvas/Holder. The tag is a unique number used to identify the age of the newly constructed CachingDisplayMethod.

virtual AttributeBuffer optionsAsAttributes()

Return the current options of this DisplayData as an AttributeBuffer.

virtual void notifyUnregister(WorldCanvasHolder& wcHolder, Bool ignoreRefresh = False)

Take actions on removal from WC[H] (notably, deletion of drawlists).

WedgeDD(const WedgeDD &other)

(Required) copy constructor.

void operator=(const WedgeDD &other)

(Required) copy assignment.