www.mooseframework.org
Functions
LineSegment.C File Reference

Go to the source code of this file.

Functions

void dataStore (std::ostream &stream, LineSegment &l, void *context)
 
void dataLoad (std::istream &stream, LineSegment &l, void *context)
 
void to_json (nlohmann::json &json, const LineSegment &l)
 

Function Documentation

◆ dataLoad()

void dataLoad ( std::istream &  stream,
LineSegment l,
void context 
)

Definition at line 243 of file LineSegment.C.

244 {
245  Point p0;
246  dataLoad(stream, p0, context);
247  Point p1;
248  dataLoad(stream, p1, context);
249  l.set(p0, p1);
250 }
void set(const Point &p0, const Point &p1)
Sets the points on the line segment.
Definition: LineSegment.C:229
void dataLoad(std::istream &stream, LineSegment &l, void *context)
Definition: LineSegment.C:243

◆ dataStore()

void dataStore ( std::ostream &  stream,
LineSegment l,
void context 
)

Definition at line 236 of file LineSegment.C.

237 {
238  dataStore(stream, l.start(), context);
239  dataStore(stream, l.end(), context);
240 }
const Point & end() const
Ending of the line segment.
Definition: LineSegment.h:68
void dataStore(std::ostream &stream, LineSegment &l, void *context)
Definition: LineSegment.C:236
const Point & start() const
Beginning of the line segment.
Definition: LineSegment.h:63

◆ to_json()

void to_json ( nlohmann::json &  json,
const LineSegment l 
)

Definition at line 253 of file LineSegment.C.

254 {
255  to_json(json["start"], l.start());
256  to_json(json["end"], l.end());
257 }
const Point & end() const
Ending of the line segment.
Definition: LineSegment.h:68
void to_json(nlohmann::json &json, const LineSegment &l)
Definition: LineSegment.C:253
const Point & start() const
Beginning of the line segment.
Definition: LineSegment.h:63