MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Annotator Class Reference

#include <Annotator.h>

+ Collaboration diagram for Annotator:

Public Member Functions

 Annotator ()
 
string getColor () const
 
string getdirpath () const
 
string getIcon () const
 
string getmodeltype () const
 
string getNotes () const
 
double getRuntime () const
 
string getSolver () const
 
string getTextColor () const
 
double getX () const
 
double getY () const
 
double getZ () const
 
void setColor (string v)
 
void setdirpath (string v)
 
void setIcon (string v)
 
void setmodeltype (string v)
 
void setNotes (string v)
 
void setRuntime (double v)
 
void setSolver (string v)
 
void setTextColor (string v)
 
void setX (double v)
 
void setY (double v)
 
void setZ (double v)
 

Static Public Member Functions

static const CinfoinitCinfo ()
 

Private Attributes

string color_
 
string dirpath_
 
string icon_
 
string modeltype_
 
string notes_
 
double runtime_
 
string solver_
 
string textColor_
 
double x_
 
double y_
 
double z_
 

Detailed Description

Definition at line 12 of file Annotator.h.

Constructor & Destructor Documentation

Annotator::Annotator ( )

Definition at line 118 of file Annotator.cpp.

119  : x_( 0.0 ), y_( 0.0 ), z_( 0.0 ),
120  notes_( "" ), color_( "white" ), textColor_( "black" ),
121  icon_( "sphere" ),solver_( "ee"),runtime_(100.0),dirpath_(""),modeltype_("")
122 {
123  ;
124 }
string textColor_
Definition: Annotator.h:50
string dirpath_
Definition: Annotator.h:54
double runtime_
Definition: Annotator.h:53
double y_
Definition: Annotator.h:46
string icon_
Definition: Annotator.h:51
string modeltype_
Definition: Annotator.h:55
double z_
Definition: Annotator.h:47
double x_
Definition: Annotator.h:45
string notes_
Definition: Annotator.h:48
string solver_
Definition: Annotator.h:52
string color_
Definition: Annotator.h:49

Member Function Documentation

string Annotator::getColor ( ) const

Definition at line 166 of file Annotator.cpp.

References color_.

Referenced by initCinfo().

167 {
168  return color_;
169 }
string color_
Definition: Annotator.h:49

+ Here is the caller graph for this function:

string Annotator::getdirpath ( ) const

Definition at line 213 of file Annotator.cpp.

References dirpath_.

Referenced by initCinfo().

214 {
215  return dirpath_;
216 }
string dirpath_
Definition: Annotator.h:54

+ Here is the caller graph for this function:

string Annotator::getIcon ( ) const

Definition at line 186 of file Annotator.cpp.

References icon_.

Referenced by initCinfo().

187 {
188  return icon_;
189 }
string icon_
Definition: Annotator.h:51

+ Here is the caller graph for this function:

string Annotator::getmodeltype ( ) const

Definition at line 222 of file Annotator.cpp.

References modeltype_.

Referenced by initCinfo().

223 {
224  return modeltype_;
225 }
string modeltype_
Definition: Annotator.h:55

+ Here is the caller graph for this function:

string Annotator::getNotes ( ) const

Definition at line 156 of file Annotator.cpp.

References notes_.

Referenced by initCinfo().

157 {
158  return notes_;
159 }
string notes_
Definition: Annotator.h:48

+ Here is the caller graph for this function:

double Annotator::getRuntime ( ) const

Definition at line 204 of file Annotator.cpp.

References runtime_.

Referenced by initCinfo().

205 {
206  return runtime_;
207 }
double runtime_
Definition: Annotator.h:53

+ Here is the caller graph for this function:

string Annotator::getSolver ( ) const

Definition at line 195 of file Annotator.cpp.

References solver_.

Referenced by initCinfo().

196 {
197  return solver_;
198 }
string solver_
Definition: Annotator.h:52

+ Here is the caller graph for this function:

string Annotator::getTextColor ( ) const

Definition at line 176 of file Annotator.cpp.

References textColor_.

Referenced by initCinfo().

177 {
178  return textColor_;
179 }
string textColor_
Definition: Annotator.h:50

+ Here is the caller graph for this function:

double Annotator::getX ( ) const

Definition at line 126 of file Annotator.cpp.

References x_.

Referenced by initCinfo().

127 {
128  return x_;
129 }
double x_
Definition: Annotator.h:45

+ Here is the caller graph for this function:

double Annotator::getY ( ) const

Definition at line 136 of file Annotator.cpp.

References y_.

Referenced by initCinfo().

137 {
138  return y_;
139 }
double y_
Definition: Annotator.h:46

+ Here is the caller graph for this function:

double Annotator::getZ ( ) const

Definition at line 146 of file Annotator.cpp.

References z_.

Referenced by initCinfo().

147 {
148  return z_;
149 }
double z_
Definition: Annotator.h:47

+ Here is the caller graph for this function:

const Cinfo * Annotator::initCinfo ( )
static

Definition at line 12 of file Annotator.cpp.

References annotatorCinfo, getColor(), getdirpath(), getIcon(), getmodeltype(), getNotes(), getRuntime(), getSolver(), getTextColor(), getX(), getY(), getZ(), Neutral::initCinfo(), setColor(), setdirpath(), setIcon(), setmodeltype(), setNotes(), setRuntime(), setSolver(), setTextColor(), setX(), setY(), and setZ().

13 {
15  // Field Definitions
18  "x",
19  "x field. Typically display coordinate x",
22  );
24  "y",
25  "y field. Typically display coordinate y",
28  );
30  "z",
31  "z field. Typically display coordinate z",
34  );
35 
37  "notes",
38  "A string to hold some text notes about parent object",
41  );
42 
44  "color",
45  "A string to hold a text string specifying display color."
46  "Can be a regular English color name, or an rgb code rrrgggbbb",
49  );
50 
51  static ValueFinfo< Annotator, string > textColor(
52  "textColor",
53  "A string to hold a text string specifying color for text label"
54  "that might be on the display for this object."
55  "Can be a regular English color name, or an rgb code rrrgggbbb",
58  );
59 
61  "icon",
62  "A string to specify icon to use for display",
65  );
66  static ValueFinfo< Annotator, string > solver(
67  "solver",
68  "A string to specify solver to store for Gui",
71  );
72  static ValueFinfo< Annotator, double > runtime(
73  "runtime",
74  "runtime field. Store runtime ",
77  );
78  static ValueFinfo< Annotator, string > dirpath(
79  "dirpath",
80  "directory path for Gui",
83  );
84  static ValueFinfo< Annotator, string > modeltype(
85  "modeltype",
86  "model type ",
89  );
90  static Finfo* annotatorFinfos[] = {
91  &x, // Value
92  &y, // Value
93  &z, // Value
94  &notes, // Value
95  &color, // Value
96  &textColor, // Value
97  &icon, // Value
98  &solver,
99  &runtime,
100  &dirpath,
101  &modeltype,
102  };
103 
104  static Dinfo< Annotator > dinfo;
105  static Cinfo annotatorCinfo (
106  "Annotator",
108  annotatorFinfos,
109  sizeof( annotatorFinfos ) / sizeof ( Finfo* ),
110  &dinfo
111  );
112 
113  return &annotatorCinfo;
114 }
static const Cinfo * annotatorCinfo
Definition: Annotator.cpp:116
Definition: Dinfo.h:60
string getColor() const
Definition: Annotator.cpp:166
string getSolver() const
Definition: Annotator.cpp:195
void setTextColor(string v)
Definition: Annotator.cpp:181
void setNotes(string v)
Definition: Annotator.cpp:161
double getZ() const
Definition: Annotator.cpp:146
string getmodeltype() const
Definition: Annotator.cpp:222
string getdirpath() const
Definition: Annotator.cpp:213
void setIcon(string v)
Definition: Annotator.cpp:191
string getTextColor() const
Definition: Annotator.cpp:176
double getY() const
Definition: Annotator.cpp:136
void setColor(string v)
Definition: Annotator.cpp:171
void setSolver(string v)
Definition: Annotator.cpp:200
void setmodeltype(string v)
Definition: Annotator.cpp:227
double getX() const
Definition: Annotator.cpp:126
string getNotes() const
Definition: Annotator.cpp:156
void setRuntime(double v)
Definition: Annotator.cpp:209
static const Cinfo * initCinfo()
Definition: Neutral.cpp:16
string getIcon() const
Definition: Annotator.cpp:186
void setX(double v)
Definition: Annotator.cpp:131
Definition: Cinfo.h:18
double getRuntime() const
Definition: Annotator.cpp:204
void setdirpath(string v)
Definition: Annotator.cpp:218
void setY(double v)
Definition: Annotator.cpp:141
void setZ(double v)
Definition: Annotator.cpp:151
Definition: Finfo.h:12

+ Here is the call graph for this function:

void Annotator::setColor ( string  v)

Definition at line 171 of file Annotator.cpp.

References color_.

Referenced by initCinfo().

172 {
173  color_ = v;
174 }
string color_
Definition: Annotator.h:49

+ Here is the caller graph for this function:

void Annotator::setdirpath ( string  v)

Definition at line 218 of file Annotator.cpp.

References dirpath_.

Referenced by initCinfo().

219 {
220  dirpath_ = v;
221 }
string dirpath_
Definition: Annotator.h:54

+ Here is the caller graph for this function:

void Annotator::setIcon ( string  v)

Definition at line 191 of file Annotator.cpp.

References icon_.

Referenced by initCinfo().

192 {
193  icon_ = v;
194 }
string icon_
Definition: Annotator.h:51

+ Here is the caller graph for this function:

void Annotator::setmodeltype ( string  v)

Definition at line 227 of file Annotator.cpp.

References modeltype_.

Referenced by initCinfo().

228 {
229  modeltype_ = v;
230 }
string modeltype_
Definition: Annotator.h:55

+ Here is the caller graph for this function:

void Annotator::setNotes ( string  v)

Definition at line 161 of file Annotator.cpp.

References notes_.

Referenced by initCinfo().

162 {
163  notes_ = v;
164 }
string notes_
Definition: Annotator.h:48

+ Here is the caller graph for this function:

void Annotator::setRuntime ( double  v)

Definition at line 209 of file Annotator.cpp.

References runtime_.

Referenced by initCinfo().

210 {
211  runtime_ = v;
212 }
double runtime_
Definition: Annotator.h:53

+ Here is the caller graph for this function:

void Annotator::setSolver ( string  v)

Definition at line 200 of file Annotator.cpp.

References solver_.

Referenced by initCinfo().

201 {
202  solver_ = v;
203 }
string solver_
Definition: Annotator.h:52

+ Here is the caller graph for this function:

void Annotator::setTextColor ( string  v)

Definition at line 181 of file Annotator.cpp.

References textColor_.

Referenced by initCinfo().

182 {
183  textColor_ = v;
184 }
string textColor_
Definition: Annotator.h:50

+ Here is the caller graph for this function:

void Annotator::setX ( double  v)

Definition at line 131 of file Annotator.cpp.

References x_.

Referenced by initCinfo().

132 {
133  x_ = v;
134 }
double x_
Definition: Annotator.h:45

+ Here is the caller graph for this function:

void Annotator::setY ( double  v)

Definition at line 141 of file Annotator.cpp.

References y_.

Referenced by initCinfo().

142 {
143  y_ = v;
144 }
double y_
Definition: Annotator.h:46

+ Here is the caller graph for this function:

void Annotator::setZ ( double  v)

Definition at line 151 of file Annotator.cpp.

References z_.

Referenced by initCinfo().

152 {
153  z_ = v;
154 }
double z_
Definition: Annotator.h:47

+ Here is the caller graph for this function:

Member Data Documentation

string Annotator::color_
private

Definition at line 49 of file Annotator.h.

Referenced by getColor(), and setColor().

string Annotator::dirpath_
private

Definition at line 54 of file Annotator.h.

Referenced by getdirpath(), and setdirpath().

string Annotator::icon_
private

Definition at line 51 of file Annotator.h.

Referenced by getIcon(), and setIcon().

string Annotator::modeltype_
private

Definition at line 55 of file Annotator.h.

Referenced by getmodeltype(), and setmodeltype().

string Annotator::notes_
private

Definition at line 48 of file Annotator.h.

Referenced by getNotes(), and setNotes().

double Annotator::runtime_
private

Definition at line 53 of file Annotator.h.

Referenced by getRuntime(), and setRuntime().

string Annotator::solver_
private

Definition at line 52 of file Annotator.h.

Referenced by getSolver(), and setSolver().

string Annotator::textColor_
private

Definition at line 50 of file Annotator.h.

Referenced by getTextColor(), and setTextColor().

double Annotator::x_
private

Definition at line 45 of file Annotator.h.

Referenced by getX(), and setX().

double Annotator::y_
private

Definition at line 46 of file Annotator.h.

Referenced by getY(), and setY().

double Annotator::z_
private

Definition at line 47 of file Annotator.h.

Referenced by getZ(), and setZ().


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