source: GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/ObjectPlacer.h @ 2694

Revision 2694, 1009 bytes checked in by mattausch, 16 years ago (diff)

worked on moving objects

Line 
1 #ifndef OBJECTPLACER_H
2#define OBJECTPLACER_H
3
4#include "Containers.h"
5
6namespace GtpVisibilityPreprocessor {
7
8class Vector3;
9class Preprocessor;
10
11
12/** A class for managing interactive object placement
13 */
14class ObjectPlacer
15{
16public:
17        /** Default constructor taking a pointer to the currently used preprocessor.
18        */
19//      ObjectPlacer(Preprocessor *prep);
20        ObjectPlacer();
21
22        /** Sets library objects.
23        */
24        void AddObject(SceneGraphLeaf *object);
25
26        /** Selects the next library object.
27        */
28        void NextObject();
29        /** Selects the previous library object.
30        */
31        void PreviousObject();
32        /** Adds an object at the indicated position.
33        */
34        void PlaceObject(const Vector3 &p);
35
36        SceneGraphLeaf *GetCurrentObject();
37
38        virtual ~ObjectPlacer() {}
39
40        DynamicObjectsContainer &GetDynamicObjects() { return mDynamicObjects; }
41
42
43protected:
44
45        //Preprocessor *mPreprocessor;
46
47        DynamicObjectsContainer mDynamicObjects;
48               
49        int mCurrentObject;
50
51};
52
53}
54
55#endif // OBJECTPLACER_H
Note: See TracBrowser for help on using the repository browser.