50 #ifndef FORMATTERLAYOUT_H_
51 #define FORMATTERLAYOUT_H_
53 #include "mb/interface/ISurface.h"
54 using namespace ::br::pucrio::telemidia::ginga::core::mb;
56 #include "ncl/layout/LayoutRegion.h"
57 using namespace ::br::pucrio::telemidia::ncl::layout;
59 #include "CascadingDescriptor.h"
60 #include "ExecutionObject.h"
61 using namespace ::br::pucrio::telemidia::ginga::ncl::model::components;
63 #include "FormatterRegion.h"
64 #include "FormatterDeviceRegion.h"
77 namespace presentation {
83 GingaScreenID myScreen;
84 map<string, FormatterLayout*> flChilds;
85 LayoutRegion* deviceRegion;
86 vector<string> sortedRegions;
87 map<string, float> regionZIndex;
88 map<string, set<FormatterRegion*>*> regionMap;
89 map<FormatterRegion*, ExecutionObject*> objectMap;
90 pthread_mutex_t mutex;
96 GingaScreenID getScreenID();
97 LayoutRegion* getDeviceRegion();
100 string getBitMapRegionId();
101 LayoutRegion* getNcmRegion(
string regionId);
104 void printRegionMap();
105 void printObjectMap();
108 void getSortedIds(vector<GingaWindowID>* sortedIds);
111 void createDeviceRegion(
int x,
int y,
int w,
int h);
114 ExecutionObject* getObject(
int x,
int y);
115 GingaWindowID prepareFormatterRegion(
116 ExecutionObject*
object,
117 ISurface* renderedSurface,
122 string layoutRegionId,
125 ISurface* renderedSurface);
128 void sortRegion(
string regionId,
float cvtIndex,
string plan);
129 float convertZIndex(
int zIndex,
string plan);
132 void showObject(ExecutionObject*
object);
133 void hideObject(ExecutionObject*
object);
136 GingaWindowID addRegionOnMaps(
138 ISurface* renderedSurface,
139 string layoutRegionId,
int zIndex,
string plan,
142 ExecutionObject* removeFormatterRegionFromMaps(
146 set<FormatterRegion*>* getFormatterRegionsFromNcmRegion(
Definition: FormatterLayout.h:78
Definition: FormatterRegion.h:87