g4tools  5.4.0
Public Types | Public Member Functions | Public Attributes | List of all members
tools::sg::plottable_box Class Reference
Inheritance diagram for tools::sg::plottable_box:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::plottable_box:
Collaboration graph
[legend]

Public Types

enum  fill_area_style { HOLLOW = 0, SOLID = 1, PATTERN = 2, HATCHED = 3 }
 

Public Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual plotprimcopy () const
 
 plottable_box (float a_X1, float a_Y1, float a_X2, float a_Y2, fill_area_style a_FAIS, const colorf &a_FACI, int a_FASI, bool a_BORD, const colorf &a_PLCI, float a_LWID)
 
 plottable_box (const plottable_box &a_from)
 
plottable_boxoperator= (const plottable_box &a_from)
 
- Public Member Functions inherited from tools::sg::plotprim
virtual ~plotprim ()
 

Public Attributes

float m_X1
 
float m_Y1
 
float m_X2
 
float m_Y2
 
fill_area_style m_FAIS
 
colorf m_FACI
 
int m_FASI
 
bool m_BORD
 
colorf m_PLCI
 
float m_LWID
 

Detailed Description

Definition at line 267 of file plottables.

Member Enumeration Documentation

◆ fill_area_style

Enumerator
HOLLOW 
SOLID 
PATTERN 
HATCHED 

Definition at line 278 of file plottables.

278  {
279  HOLLOW = 0,
280  SOLID = 1,
281  PATTERN = 2,
282  HATCHED = 3
283  };

Constructor & Destructor Documentation

◆ plottable_box() [1/2]

tools::sg::plottable_box::plottable_box ( float  a_X1,
float  a_Y1,
float  a_X2,
float  a_Y2,
fill_area_style  a_FAIS,
const colorf a_FACI,
int  a_FASI,
bool  a_BORD,
const colorf a_PLCI,
float  a_LWID 
)
inline

Definition at line 285 of file plottables.

289  :m_X1(a_X1),m_Y1(a_Y1),m_X2(a_X2),m_Y2(a_Y2)
290  ,m_FAIS(a_FAIS),m_FACI(a_FACI),m_FASI(a_FASI),m_BORD(a_BORD),m_PLCI(a_PLCI),m_LWID(a_LWID)
291  {}

◆ plottable_box() [2/2]

tools::sg::plottable_box::plottable_box ( const plottable_box a_from)
inline

Definition at line 293 of file plottables.

294  :parent(a_from)
295  ,m_X1(a_from.m_X1),m_Y1(a_from.m_Y1)
296  ,m_X2(a_from.m_X2),m_Y2(a_from.m_Y2)
297  ,m_FAIS(a_from.m_FAIS),m_FACI(a_from.m_FACI),m_FASI(a_from.m_FASI),m_BORD(a_from.m_BORD),m_PLCI(a_from.m_PLCI)
298  ,m_LWID(a_from.m_LWID)
299  {}

Member Function Documentation

◆ cast()

virtual void* tools::sg::plottable_box::cast ( const std::string &  a_class) const
inlinevirtual

Implements tools::sg::plotprim.

Definition at line 272 of file plottables.

272  {
273  if(void* p = cmp_cast<plottable_box>(this,a_class)) {return p;}
274  return 0;
275  }

◆ copy()

virtual plotprim* tools::sg::plottable_box::copy ( ) const
inlinevirtual

Implements tools::sg::plotprim.

Definition at line 276 of file plottables.

276 {return new plottable_box(*this);}

◆ operator=()

plottable_box& tools::sg::plottable_box::operator= ( const plottable_box a_from)
inline

Definition at line 300 of file plottables.

300  {
301  m_X1 = a_from.m_X1;
302  m_Y1 = a_from.m_Y1;
303  m_X2 = a_from.m_X2;
304  m_Y2 = a_from.m_Y2;
305  m_FAIS = a_from.m_FAIS;
306  m_FACI = a_from.m_FACI;
307  m_FASI = a_from.m_FASI;
308  m_BORD = a_from.m_BORD;
309  m_PLCI = a_from.m_PLCI;
310  m_LWID = a_from.m_LWID;
311  return *this;
312  }

Member Data Documentation

◆ m_BORD

bool tools::sg::plottable_box::m_BORD

Definition at line 321 of file plottables.

◆ m_FACI

colorf tools::sg::plottable_box::m_FACI

Definition at line 319 of file plottables.

◆ m_FAIS

fill_area_style tools::sg::plottable_box::m_FAIS

Definition at line 318 of file plottables.

◆ m_FASI

int tools::sg::plottable_box::m_FASI

Definition at line 320 of file plottables.

◆ m_LWID

float tools::sg::plottable_box::m_LWID

Definition at line 323 of file plottables.

◆ m_PLCI

colorf tools::sg::plottable_box::m_PLCI

Definition at line 322 of file plottables.

◆ m_X1

float tools::sg::plottable_box::m_X1

Definition at line 314 of file plottables.

◆ m_X2

float tools::sg::plottable_box::m_X2

Definition at line 316 of file plottables.

◆ m_Y1

float tools::sg::plottable_box::m_Y1

Definition at line 315 of file plottables.

◆ m_Y2

float tools::sg::plottable_box::m_Y2

Definition at line 317 of file plottables.


The documentation for this class was generated from the following file:
tools::sg::plottable_box::m_X1
float m_X1
Definition: plottables:314
tools::sg::plottable_box::HOLLOW
@ HOLLOW
Definition: plottables:279
tools::sg::plottable_box::m_FAIS
fill_area_style m_FAIS
Definition: plottables:318
tools::sg::plottable_box::PATTERN
@ PATTERN
Definition: plottables:281
tools::sg::plottable_box::m_Y1
float m_Y1
Definition: plottables:315
tools::sg::plottable_box::m_BORD
bool m_BORD
Definition: plottables:321
tools::sg::plottable_box::plottable_box
plottable_box(float a_X1, float a_Y1, float a_X2, float a_Y2, fill_area_style a_FAIS, const colorf &a_FACI, int a_FASI, bool a_BORD, const colorf &a_PLCI, float a_LWID)
Definition: plottables:285
tools::sg::plottable_box::SOLID
@ SOLID
Definition: plottables:280
tools::sg::plottable_box::m_PLCI
colorf m_PLCI
Definition: plottables:322
tools::sg::plottable_box::HATCHED
@ HATCHED
Definition: plottables:282
tools::sg::plottable_box::m_X2
float m_X2
Definition: plottables:316
tools::sg::plottable_box::m_FACI
colorf m_FACI
Definition: plottables:319
tools::sg::plottable_box::m_Y2
float m_Y2
Definition: plottables:317
tools::sg::plottable_box::m_FASI
int m_FASI
Definition: plottables:320
tools::sg::plottable_box::m_LWID
float m_LWID
Definition: plottables:323