BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Signals | |
void | updated (bool withEye) |
Public Member Functions | |
Model () | |
~Model () override | |
void | add (Object *) |
add an opaque object, the model takes ownership More... | |
void | addBlend (Object *) |
add a transparent object, the model takes ownership More... | |
virtual void | cameraUpdated (Camera const &) |
void | clearBlend () |
void | clearOpaque () |
bool | modelIsEmpty () |
void | releaseGeometries () |
may be called any time More... | |
void | rem (Object *) |
removes an object, the caller becomes responsible More... | |
Static Public Member Functions | |
static Particles::Particle * | newParticle (Particles::EShape k, float R) |
Public Attributes | |
Camera::Position | defCamPos |
default camera params More... | |
Private Member Functions | |
void | draw (Canvas &) const |
void | drawBlend (Canvas &) const |
Private Attributes | |
QVector< Object * > | objects |
QVector< Object * > | objectsBlend |
Friends | |
class | Camera |
class | Canvas |
class | Object |
GUI::RealSpace::Model::Model | ( | ) |
Definition at line 21 of file model.cpp.
|
override |
void GUI::RealSpace::Model::add | ( | Object * | o | ) |
add an opaque object, the model takes ownership
Definition at line 128 of file model.cpp.
References GUI::RealSpace::Object::model, and objects.
Referenced by RealSpaceBuilder::populateParticleFromParticle3DContainer().
void GUI::RealSpace::Model::addBlend | ( | Object * | o | ) |
add a transparent object, the model takes ownership
Definition at line 136 of file model.cpp.
References GUI::RealSpace::Object::model, and objectsBlend.
Referenced by RealSpaceBuilder::populateLayer(), and RealSpaceBuilder::populateParticleFromParticle3DContainer().
|
inlinevirtual |
void GUI::RealSpace::Model::clearBlend | ( | ) |
Definition at line 46 of file model.cpp.
References objectsBlend, and updated().
void GUI::RealSpace::Model::clearOpaque | ( | ) |
|
private |
Definition at line 170 of file model.cpp.
References objects.
Referenced by GUI::RealSpace::Canvas::paintGL().
|
private |
Definition at line 176 of file model.cpp.
References objectsBlend.
Referenced by GUI::RealSpace::Canvas::paintGL().
bool GUI::RealSpace::Model::modelIsEmpty | ( | ) |
Definition at line 165 of file model.cpp.
References objects, and objectsBlend.
Referenced by GUI::RealSpace::Canvas::paintGL().
|
static |
Definition at line 53 of file model.cpp.
References GUI::RealSpace::DodecahedronL2R, and GUI::RealSpace::IcosahedronL2R.
void GUI::RealSpace::Model::releaseGeometries | ( | ) |
may be called any time
Definition at line 157 of file model.cpp.
References objects, and objectsBlend.
void GUI::RealSpace::Model::rem | ( | Object * | o | ) |
removes an object, the caller becomes responsible
Definition at line 144 of file model.cpp.
References GUI::RealSpace::Object::model, objects, objectsBlend, and GUI::RealSpace::Object::releaseGeometry().
Referenced by GUI::RealSpace::Object::~Object().
|
signal |
Referenced by clearBlend(), clearOpaque(), and GUI::RealSpace::Canvas::setModel().
Camera::Position GUI::RealSpace::Model::defCamPos |
default camera params
Definition at line 52 of file model.h.
Referenced by RealSpaceBuilder::populate(), and GUI::RealSpace::Canvas::setCamera().
|
private |
Definition at line 58 of file model.h.
Referenced by ~Model(), add(), clearOpaque(), draw(), modelIsEmpty(), releaseGeometries(), and rem().
|
private |
Definition at line 58 of file model.h.
Referenced by ~Model(), addBlend(), clearBlend(), drawBlend(), modelIsEmpty(), releaseGeometries(), and rem().