Skip to content

Commit

Permalink
Prefilled commented example in RAW model object text edit
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-soltys committed Nov 4, 2018
1 parent e270b96 commit e5d5188
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion range/Range/src/draw_engine_raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,23 @@ DrawEngineRaw::DrawEngineRaw(QObject *parent) :
{
this->name = tr("Geometry");

this->inputParameters.append(DrawEngineInput(QString(""),tr("RAW model"),tr("RAW model file content."),"ASCII"));
QString rawContent("# RAW model file content\n"
"# Comments start with hash sign '#'\n"
"# Comments and empty lines are ignored\n"
"# \n"
"# Point element\n"
"# 0.0 0.0 0.0\n"
"# \n"
"# Line element\n"
"# 0.0 0.0 0.0 1.0 0.0 0.0\n"
"# \n"
"# Triangle element\n"
"# 0.0 0.0 0.0 1.0 0.0 0.0 1.0 0.0 0.0\n"
"# \n"
"# Quadrilateral element\n"
"# 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0\n");

this->inputParameters.append(DrawEngineInput(rawContent,tr("RAW model"),tr("RAW model file content."),"ASCII"));

this->updateModel();
}
Expand Down

0 comments on commit e5d5188

Please sign in to comment.