22 class ProjectExchanger;
32 friend class ProjectExchanger;
36 explicit OiJob(QObject *parent = 0);
44 const QString &getJobName()
const;
45 void setJobName(
const QString &jobName);
47 const QPointer<QIODevice> &getJobDevice()
const;
48 void setJobDevice(
const QPointer<QIODevice> &jobDevice);
50 int generateUniqueId();
52 bool validateFeatureName(
const QString &name,
const FeatureTypes &type,
const bool &isNominal =
false,
53 const QPointer<CoordinateSystem> &nominalSystem = QPointer<CoordinateSystem>(NULL));
60 int getFeatureCount()
const;
61 int getGeometryCount()
const;
63 int getFeatureCount(
const QString &group)
const;
64 int getFeatureCount(
const QPair<QString, bool> &mConfig)
const;
67 const QList<int> &getFeatureIdList()
const;
68 const QStringList &getFeatureNameList()
const;
69 const QStringList &getFeatureGroupList()
const;
70 const QList<QPair<QString, bool> > &getUsedMeasurementConfigs()
const;
73 const QList<QPointer<FeatureWrapper> > &getFeaturesList()
const;
74 const QList<QPointer<CoordinateSystem> > &getCoordinateSystemsList()
const;
75 QList<QPointer<CoordinateSystem> > getStationSystemsList()
const;
76 const QList<QPointer<Station> > &getStationsList()
const;
77 const QList<QPointer<TrafoParam> > &getTransformationParametersList()
const;
78 const QList<QPointer<FeatureWrapper> > &getGeometriesList()
const;
81 QPointer<FeatureWrapper> getFeatureById(
const int &featureId)
const;
82 QList<QPointer<FeatureWrapper> > getFeaturesByName(
const QString &name)
const;
83 QList<QPointer<FeatureWrapper> > getFeaturesByGroup(
const QString &group)
const;
84 QList<QPointer<FeatureWrapper> > getFeaturesByType(
const FeatureTypes &type)
const;
85 QList<QPointer<Geometry> > getGeometriesByMConfig(
const QPair<QString, bool> &mConfig)
const;
88 const QPointer<FeatureWrapper> &getActiveFeature()
const;
89 const QPointer<Station> &getActiveStation()
const;
90 const QPointer<CoordinateSystem> &getActiveCoordinateSystem()
const;
93 const QString &getActiveGroup()
const;
94 bool setActiveGroup(
const QString &group);
100 bool addFeature(
const QPointer<FeatureWrapper> &feature);
102 bool addFeatures(
const QList<QPointer<FeatureWrapper> > &features);
104 bool removeFeature(
const int &featureId);
105 bool removeFeature(
const QPointer<FeatureWrapper> &feature);
106 bool removeFeatures(
const QSet<int> &featureIds);
107 bool removeFeatures(
const QList<QPointer<FeatureWrapper> > &features);
116 void addFunction(
const QPointer<Function> &
function);
117 void removeFunction(
const int &functionIndex);
120 void addInputObservation(
const QPointer<FeatureWrapper> &target,
const int &functionPosition,
const int &neededElementsIndex,
const QPointer<Observation> &observation);
121 void addInputReading(
const QPointer<FeatureWrapper> &target,
const int &functionPosition,
const int &neededElementsIndex,
const QPointer<Reading> &reading);
122 void addInputFeature(
const QPointer<FeatureWrapper> &target,
const int &functionPosition,
const int &neededElementsIndex,
const QPointer<FeatureWrapper> &feature);
125 void removeInputElement(
const QPointer<FeatureWrapper> &target,
const int &functionPosition,
const int &neededElementsIndex,
const int &elementId);
132 void addMeasurementResults(
const int &geomId,
const QList<QPointer<Reading> > &readings);
135 void removeObservations(
const int &featureId);
136 void removeAllObservations();
142 void setShouldBeUsed(
const QPointer<FeatureWrapper> &target,
const int &functionIndex,
const int &neededElementIndex,
143 const int &elementId,
const bool &use,
const bool &recalc);
152 void activeFeatureChanged();
153 void activeStationChanged();
154 void activeCoordinateSystemChanged();
157 void featureSetChanged();
158 void coordSystemSetChanged();
159 void stationSetChanged();
160 void trafoParamSetChanged();
161 void geometrySetChanged();
164 void availableGroupsChanged();
165 void activeGroupChanged();
168 void featureAttributesChanged();
171 void featureNameChanged(
const int &featureId,
const QString &oldName);
172 void featureGroupChanged(
const int &featureId,
const QString &oldGroup);
173 void featureCommentChanged(
const int &featureId);
174 void featureIsUpdatedChanged(
const int &featureId);
175 void featureIsSolvedChanged(
const int &featureId);
176 void featureFunctionsChanged(
const int &featureId);
177 void featureUsedForChanged(
const int &featureId);
178 void featurePreviouslyNeededChanged(
const int &featureId);
181 void geometryIsCommonChanged(
const int &featureId);
182 void geometryNominalsChanged(
const int &featureId);
183 void geometryActualChanged(
const int &featureId);
184 void geometryObservationsChanged(
const int &featureId);
185 void geometryNominalSystemChanged(
const int &featureId);
186 void geometryStatisticChanged(
const int &featureId);
187 void geometrySimulationDataChanged(
const int &featureId);
188 void geometryMeasurementConfigChanged(
const int &featureId,
const QString &oldMConfig,
bool oldIsSaved);
191 void systemObservationsChanged(
const int &featureId,
const int &obsId);
192 void systemTrafoParamsChanged(
const int &featureId);
193 void systemsNominalsChanged(
const int &featureId);
196 void stationSensorChanged(
const int &featureId);
199 void trafoParamParametersChanged(
const int &featureId);
200 void trafoParamSystemsChanged(
const int &featureId);
201 void trafoParamIsUsedChanged(
const int &featureId);
202 void trafoParamValidTimeChanged(
const int &featureId);
203 void trafoParamIsMovementChanged(
const int &featureId);
215 void recalcFeature(
const QPointer<Feature> &feature);
221 void featuresRecalculated();
222 void featureRecalculated(
const int &featureId);
223 void trafoParamRecalculated(
const int &featureId);
232 void setActiveFeature(
const int &featureId);
233 void setActiveStation(
const int &featureId);
234 void setActiveCoordinateSystem(
const int &featureId);
237 void setFeatureName(
const int &featureId,
const QString &oldName);
238 void setFeatureGroup(
const int &featureId,
const QString &oldGroup);
239 void setFeatureComment(
const int &featureId);
240 void setFeatureIsUpdated(
const int &featureId);
241 void setFeatureIsSolved(
const int &featureId);
242 void setFeatureFunctions(
const int &featureId);
243 void setFeatureUsedFor(
const int &featureId);
244 void setFeaturePreviouslyNeeded(
const int &featureId);
247 void setGeometryIsCommon(
const int &featureId);
248 void setGeometryNominals(
const int &featureId);
249 void setGeometryActual(
const int &featureId);
250 void setGeometryObservations(
const int &featureId);
251 void setGeometryNominalSystem(
const int &featureId);
252 void setGeometryStatistic(
const int &featureId);
253 void setGeometrySimulationData(
const int &featureId);
254 void setGeometryMeasurementConfig(
const int &featureId,
const QString &oldMConfig,
bool oldIsSaved);
257 void setSystemObservations(
const int &featureId,
const int &obsId);
258 void setSystemTrafoParams(
const int &featureId);
259 void setSystemsNominals(
const int &featureId);
262 void setStationSensor(
const int &featureId);
265 void setTrafoParamParameters(
const int &featureId);
266 void setTrafoParamSystems(
const int &featureId);
267 void setTrafoParamIsUsed(
const int &featureId);
268 void setTrafoParamValidTime(
const int &featureId);
269 void setTrafoParamIsMovement(
const int &featureId);
272 void elementAboutToBeDeleted(
const int &elementId,
const QString &name,
const QString &group,
const FeatureTypes &type);
280 void connectFeature(
const QPointer<FeatureWrapper> &feature);
281 void disconnectFeature(
const QPointer<FeatureWrapper> &feature);
287 QStringList createFeatureNames(
const QString &name,
const int &count)
const;
288 QPointer<FeatureWrapper> createFeatureWrapper(
const FeatureTypes &type,
bool isNominal =
false)
const;
289 bool checkAndSetUpNewFeature(
const QPointer<FeatureWrapper> &feature);
291 bool canRemoveFeature(
const QPointer<FeatureWrapper> &feature)
const;
293 bool checkCircleWarning(
const QPointer<Feature> &activeFeature,
const QPointer<Feature> &usedForActiveFeature);
295 void setUpDependencies(
const InputElement &element,
const QPointer<Feature> &feature);
296 void resetDependencies(
const InputElement &element,
const QPointer<Feature> &feature);
302 void addFeaturesFromXml(
const QList<QPointer<FeatureWrapper> > &features);
311 QPointer<QIODevice> jobDevice;
318 QPointer<FeatureWrapper> activeFeature;
319 QPointer<Station> activeStation;
320 QPointer<CoordinateSystem> activeCoordinateSystem;
FeatureTypes
all OpenIndy feature types
Definition: types.h:95
The FeatureAttributes class Helper class that is used when creating new features to specify their att...
Definition: featureattributes.h:15
Definition: coordinatesystem.h:15
MessageDestinations
used to specify where to print a message
Definition: types.h:37
MessageTypes
all types of messages
Definition: types.h:29
The FeatureContainer class Works as a container for all features in an OiJob. The features are stored...
Definition: featurecontainer.h:26
#define OI_CORE_EXPORT
Definition: types.h:11
The OiJob class Represents an OpenIndy job (holds all features and active states) ...
Definition: oijob.h:30