Stores the label and cpgbox options for an axis. More...

#include <PlotAxis.h>

Inheritance diagram for Pulsar::PlotAxis:
Reference::Able Reference::HeapTracked

Public Member Functions

 PlotAxis ()
 Default constructor.
void set_label (const std::string &_label, bool overwrite)
 Set the label to be drawn on the axis.
void set_label (const std::string &_label)
std::string get_label () const
 Get the label to be drawn on the axis.
void set_displacement (float d)
 Set the label displacement from edge of viewport.
float get_displacement () const
 Get the label displacement from edge of viewport.
void set_alternate (bool f)
 Set if the frame opposite the axis may have an alternate scale.
bool get_alternate () const
 Get the world-normalized minimum value on the axis.
void set_opt (const std::string &o)
 Set the options to be passed to pgbox for this axis.
std::string get_opt () const
 Get the label to be drawn on the axis.
void set_tick (float f)
 Set the tick to be passed to pgbox for this axis.
float get_tick () const
void set_nsub (unsigned f)
 Set the nsub to be passed to pgbox for this axis.
unsigned get_nsub () const
void add_opt (char opt)
 Add to the options to be passed to pgbox for this axis.
void rem_opt (char opt)
 Remove from the options to be passed to pgbox for this axis.
Public Member Functions inherited from Reference::Able
 Able (const Able &)
Ableoperator= (const Able &)
unsigned get_reference_count () const
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked (const HeapTracked &)
HeapTrackedoperator= (const HeapTracked &)
bool __is_on_heap () const

Protected Attributes

std::string label
float displacement
std::string opt
float tick
unsigned nsub
bool alternate

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
static void operator delete (void *location, void *ptr)
static void operator delete (void *location)
static size_t get_heap_queue_size ()
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
void __dereference (bool auto_delete=true) const

Detailed Description

Stores the label and cpgbox options for an axis.

Member Function Documentation

◆ set_displacement()

void Pulsar::PlotAxis::set_displacement ( float d)
inline

Set the label displacement from edge of viewport.

In units of the character height (see PGMTXT documentation)


The documentation for this class was generated from the following files:

Generated using doxygen 1.14.0