1 #ifndef SIMPLETEXTUREDSCENE_H 2 #define SIMPLETEXTUREDSCENE_H 8 #include <QSharedPointer> 47 void addObject(QSharedPointer<SimpleTexturedObject>
object);
53 void removeObject(QSharedPointer<SimpleTexturedObject>
object);
129 QSharedPointer<AbstractRenderer>
makeRenderer()
override;
132 QVector<QSharedPointer<SimpleTexturedObject>>
mObjects;
138 #endif // SIMPLETEXTUREDSCENE_H Definition: abstractscene.h:12
auto end() const
Definition: simpletexturedscene.h:82
auto begin()
Definition: simpletexturedscene.h:63
A helper class to provide an iterator into a collection of pointers such that when the iterator is de...
Definition: dereferencingiterator.h:11
SimpleTexturedScene::SharedSimpleTexturedScene SharedSimpleTexturedScene
Definition: simpletexturedscene.h:136
QSharedPointer< AbstractRenderer > makeRenderer() override
Creates and returns a SimpleTexturedRenderer.
Definition: simpletexturedscene.cpp:48
void objectAdded(const SimpleTexturedObject &obj)
Emitted when an object is added.
QVector< QSharedPointer< SimpleTexturedObject > > mObjects
Definition: simpletexturedscene.h:132
A helper class to provide an iterator into a collection of pointers such that when the iterator is de...
Definition: dereferencingconstiterator.h:13
auto begin() const
Definition: simpletexturedscene.h:76
void changesCommitted()
Emitted when changes to the scene are committed and should be rendered.
void sceneCleared()
Emitted when all objects are removed from the scene.
void addObject(QSharedPointer< SimpleTexturedObject > object)
Adds an object to the scene.
Definition: simpletexturedscene.cpp:30
SimpleTexturedScene()
Creates an empty scene.
Definition: simpletexturedscene.cpp:5
auto end()
Definition: simpletexturedscene.h:69
The SimpleTexturedObject class represents an object with Phong lighting information and a single text...
Definition: simpletexturedobject.h:23
virtual ~SimpleTexturedScene()
Definition: simpletexturedscene.cpp:19
static SharedSimpleTexturedScene makeScene()
Creates an empty scene.
Definition: simpletexturedscene.cpp:13
std::shared_ptr< SimpleTexturedScene > SharedSimpleTexturedScene
Definition: simpletexturedscene.h:26
void objectRemoved(const SimpleTexturedObject &obj)
Emitted when an object is about to be removed.
void removeObject(QSharedPointer< SimpleTexturedObject > object)
Removes an object from the scene.
Definition: simpletexturedscene.cpp:36
SharedOBJModel exportOBJ() override
export all renderable object as a single OBJModel
Definition: simpletexturedscene.cpp:60
Definition: simpletexturedscene.h:20
void clear()
Removes all objects from the scene.
Definition: simpletexturedscene.cpp:24
void commitChanges()
Commits the changes to the scene, possibly causing it to be rerendered.
Definition: simpletexturedscene.cpp:42