vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
vrecko
Vrecko - the Virtual Reality Engine
Dynamic Art module
L-system plant modeler - module for Vrecko
Head Up Display module
Space Partitioning - module for Vrecko
Todo List
Deprecated List
Namespaces
Classes
Files
File List
include
base
helpers
vrecko
vreckoAP
ArtificialWorld
behindO
Boids
CableEditor
CameraMovement
CameraPath
CarSim
ConnectEditor
ConstrainedMovement
DynamicArt
AP_DynamicArt.h
Attractor.h
Brush.h
BrushStroke.h
ColorGenAdapter.h
ComputeStrategy.h
ComputeThread.h
Configuration.h
Controller.h
Ctrl_Attractor.h
Ctrl_FreeHandPainting.h
Ctrl_MotionVisualization.h
Ctrl_PerlinLines.h
Ctrl_PolyhedraSculptures.h
Ctrl_StringSculptures.h
DAEnvironment.h
DATool.h
DiameterGenAdapter.h
Hook.h
HookManager.h
Hoop.h
HoopShape.h
JuliaAttractor.h
Modes.h
MotionTrail.h
NullAttractor.h
OrdinaryAttractor.h
Parameters.h
ParticleSystem.h
Pattern.h
PatternGeode.h
PerlinLines.h
PerlinLinesTools.h
PhysXManager.h
PoA.h
PolyhedraSculpture.h
PS_Component.h
PS_emptyClass.h
PS_Face.h
PS_FacePlane.h
PS_FlatShape.h
PS_Layer.h
PS_Polyhedron.h
PS_Symmetry.h
RotationFrameGenAdapter.h
SectorColorGen.h
SectorManager.h
SimpleBox.h
SplineAdapter.h
TimeLineSpline.h
Timing.h
ToolBrush.h
ToolEraser.h
ToolHook.h
ToolMagicWand.h
ToolRotation.h
ToolSelector.h
ToolSlice.h
ToolTongs.h
Utils.h
EditorController
EditorQAbilities
FFDEditor
Filter
games
Garden
GUI
HeadTracking
HelloWorld
HUD
InputConnector
LightsEditor
Menu
Nature
navigation
ObjectUtils
ODE
RoomEdit
ShootingSimulation
SpacePartitioning
TextOutput
vreckoDP
vreckoUtils
src
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SectorManager.h
Go to the documentation of this file.
1
#pragma once
2
#include "
Pattern.h
"
3
#include "
Hoop.h
"
4
#include "
SectorColorGen.h
"
5
6
namespace
APDYNAMICART
7
{
8
9
struct
SectorInfo
10
{
11
SectorPtr
sector
;
12
HoopPtr
hoop
;
13
PatternPtr
pattern
;
14
15
SectorInfo
(
SectorPtr
sector
,
PatternPtr
pattern
,
HoopPtr
hoop
)
16
: sector(sector), pattern(pattern), hoop(hoop) {};
17
};
18
20
23
class
SectorManager
24
{
25
public
:
26
static
SectorManager
*
getInstance
()
27
{
28
static
SectorManager
manager;
29
return
&manager;
30
}
31
32
void
addSector
(
SectorPtr
sector,
HoopPtr
hoop);
33
void
removeSector
(
unsigned
int
index);
34
void
setDefaultPattern
(
PatternPtr
pattern);
35
void
removeAllSectorsOnHoop
(
HoopPtr
hoop );
36
38
SectorPtr
getSector
(
unsigned
int
index);
39
HoopPtr
getHoop
(
unsigned
int
index);
40
PatternPtr
getPattern
(
unsigned
int
index);
41
unsigned
int
getNumSectors
();
42
44
typedef
std::vector<SectorInfo>
SectorInfoList
;
45
const
SectorInfoList
&
getSectorInfoList
()
const
{
return
_sectorInfoList
; }
46
SectorInfoList
&
getSectorInfoList
() {
return
_sectorInfoList
; }
47
49
void
load
(
HoopPtr
hoop,
int
sectorsCount, XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
* PoANode );
50
void
save
(
HoopPtr
hoop, XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* Document, XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
* poaNode );
51
52
protected
:
53
SectorManager
();
//Protected constructor, so no one can create instance of this class
54
std::vector<SectorInfo>
_sectorInfoList
;
55
std::string
_defaultPatternName
;
56
};
57
}
58
include
vreckoAP
DynamicArt
SectorManager.h
Generated on Tue Feb 19 2013 10:23:43 for vrecko by
1.8.3.1