Minsky
schema2::ItemBase Struct Reference

#include <schema2.h>

Inheritance diagram for schema2::ItemBase:
Inheritance graph
Collaboration diagram for schema2::ItemBase:
Collaboration graph

Public Member Functions

 ItemBase ()
 
 ItemBase (int id, const minsky::Item &it, const std::vector< int > &ports)
 
 ItemBase (const schema1::Item &it, const std::string &type="Item")
 
- Public Member Functions inherited from minsky::PlotOptions< Note >
 PlotOptions ()=default
 
 PlotOptions (const Note &x)
 
PlotOptionsoperator= (const PlotWidget &plot)
 
void applyPlotOptions (PlotWidget &plot) const
 

Public Attributes

int id =-1
 
std::string type
 
float x =0
 
float y =0
 position in canvas, or within group More...
 
float zoomFactor =1
 
double rotation =0
 rotation of icon, in degrees More...
 
std::vector< int > ports
 
- Public Attributes inherited from minsky::PlotOptions< Note >
Optional< std::string > name
 
Optional< bool > logx
 
Optional< bool > logy
 
Optional< bool > ypercent
 
Optional< bool > grid
 
Optional< bool > subgrid
 
Optional< minsky::PlotWidget::PlotType > plotType
 
Optional< std::string > xlabel
 
Optional< std::string > ylabel
 
Optional< std::string > y1label
 
Optional< int > nxTicks
 
Optional< int > nyTicks
 
Optional< double > xtickAngle
 
Optional< double > exp_threshold
 
double xmin
 
double xmax
 
double ymin
 
double ymax
 
double y1min
 
double y1max
 
unsigned symbolEvery
 
Optional< ecolab::Plot::Side > legend
 
Optional< LegendGeometrylegendGeometry
 
Optional< std::vector< ecolab::Plot::LineStyle > > palette
 
Optional< std::vector< std::string > > horizontalMarkers
 
Optional< std::vector< std::string > > verticalMarkers
 

Detailed Description

Definition at line 68 of file schema2.h.

Constructor & Destructor Documentation

◆ ItemBase() [1/3]

schema2::ItemBase::ItemBase ( )
inline

Definition at line 76 of file schema2.h.

76 {}

◆ ItemBase() [2/3]

schema2::ItemBase::ItemBase ( int  id,
const minsky::Item it,
const std::vector< int > &  ports 
)
inline

Definition at line 77 of file schema2.h.

77  :
78  minsky::PlotOptions<Note>(Note(it)), id(id), type(it.classType()),
79  x(it.m_x), y(it.m_y), zoomFactor(it.zoomFactor()), rotation(it.rotation()),
80  ports(ports) {}
float y
position in canvas, or within group
Definition: schema2.h:72
std::string type
Definition: schema2.h:71
double rotation
rotation of icon, in degrees
Definition: schema2.h:74
virtual float zoomFactor() const
Definition: item.cc:121
std::vector< int > ports
Definition: schema2.h:75
virtual std::string classType() const
Definition: item.h:234
float m_y
position in canvas, or within group
Definition: item.h:173
float m_x
Definition: item.h:173
float zoomFactor
Definition: schema2.h:73
double rotation() const
Definition: item.h:211

◆ ItemBase() [3/3]

schema2::ItemBase::ItemBase ( const schema1::Item it,
const std::string &  type = "Item" 
)
inline

Definition at line 81 of file schema2.h.

81  :
82  PlotOptions<Note>(it), id(it.id), type(type) {}
std::string type
Definition: schema2.h:71

Member Data Documentation

◆ id

int schema2::ItemBase::id =-1

Definition at line 70 of file schema2.h.

◆ ports

std::vector<int> schema2::ItemBase::ports

Definition at line 75 of file schema2.h.

Referenced by schema2::Item::Item().

◆ rotation

double schema2::ItemBase::rotation =0

rotation of icon, in degrees

Definition at line 74 of file schema2.h.

◆ type

std::string schema2::ItemBase::type

Definition at line 71 of file schema2.h.

◆ x

float schema2::ItemBase::x =0

Definition at line 72 of file schema2.h.

◆ y

float schema2::ItemBase::y =0

position in canvas, or within group

Definition at line 72 of file schema2.h.

◆ zoomFactor

float schema2::ItemBase::zoomFactor =1

Definition at line 73 of file schema2.h.


The documentation for this struct was generated from the following file: