00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "ImageSpaces.h"
00022
00023
00024 namespace cmlabs {
00025
00026
00027
00028
00029
00030 FeaturePlane::FeaturePlane(JString creatorName, JTime t, double depth) {
00031 creator = creatorName;
00032 frameTime = t;
00033 planeDepth = depth;
00034 }
00035
00036 FeaturePlane::~FeaturePlane() {
00037 }
00038
00039 FeaturePlane::FeaturePlane(JString xml) {
00040 if (!Object::fromXML(xml)) {
00041 }
00042 }
00043
00044 FeaturePlane::FeaturePlane(XMLNode* node) {
00045 if (!fromXML(node)) {
00046 }
00047 }
00048
00049 Object* FeaturePlane::clone() const {
00050 FeaturePlane* l = new FeaturePlane(creator, frameTime, planeDepth);
00051 *l = *this;
00052 return l;
00053 }
00054
00055 JString FeaturePlane::print() {
00056 return JString::format("FeaturePlane: Features: %d", 0);
00057 }
00058
00059 JString FeaturePlane::toXML() {
00060 return JString::format("<featureplane></featureplane>");
00061 }
00062
00063 bool FeaturePlane::fromXML(XMLNode* node) {
00064 if (node == NULL) {
00065 return false;
00066 }
00067 if (!node->getTag().equalsIgnoreCase("featureplane"))
00068 return false;
00069
00070
00071
00072
00073
00074
00075
00076
00077 return true;
00078 }
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102 FeatureSpace::FeatureSpace(JString creatorName, JTime t, Bitmap* img) {
00103 creator = creatorName;
00104 frameTime = t;
00105 image = img;
00106 }
00107
00108 FeatureSpace::~FeatureSpace() {
00109 }
00110
00111 FeatureSpace::FeatureSpace(JString xml) {
00112 if (!Object::fromXML(xml)) {
00113 }
00114 }
00115
00116 FeatureSpace::FeatureSpace(XMLNode* node) {
00117 if (!fromXML(node)) {
00118 }
00119 }
00120
00121 Object* FeatureSpace::clone() const {
00122 FeatureSpace* l = new FeatureSpace(creator, frameTime, image);
00123 *l = *this;
00124 return l;
00125 }
00126
00127
00128
00129 ImagePointFeature* FeatureSpace::addPointFeature() {
00130 return NULL;
00131 }
00132
00133
00134 ImageLineFeature* FeatureSpace::addLineFeature() {
00135 return NULL;
00136 }
00137
00138
00139 ImagePolyLineFeature* FeatureSpace::addPolyLineFeature() {
00140 return NULL;
00141 }
00142
00143 JString FeatureSpace::print() {
00144 return JString::format("FeatureSpace: Features: %d", 0);
00145 }
00146
00147 JString FeatureSpace::toXML() {
00148 return JString::format("<featurespace></featurespace>");
00149 }
00150
00151 bool FeatureSpace::fromXML(XMLNode* node) {
00152 if (node == NULL) {
00153 return false;
00154 }
00155 if (!node->getTag().equalsIgnoreCase("featurespace"))
00156 return false;
00157
00158
00159
00160
00161
00162
00163
00164
00165 return true;
00166 }
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187 FeatureCombiSpace::FeatureCombiSpace() {
00188 }
00189
00190 FeatureCombiSpace::~FeatureCombiSpace() {
00191 }
00192
00193 FeatureCombiSpace::FeatureCombiSpace(JString xml) {
00194 if (!Object::fromXML(xml)) {
00195 }
00196 }
00197
00198 FeatureCombiSpace::FeatureCombiSpace(XMLNode* node) {
00199 if (!fromXML(node)) {
00200 }
00201 }
00202
00203 Object* FeatureCombiSpace::clone() const {
00204 FeatureCombiSpace* l = new FeatureCombiSpace();
00205 *l = *this;
00206 return l;
00207 }
00208
00209 JString FeatureCombiSpace::print() {
00210 return JString::format("FeatureCombiSpace: Features: %d", 0);
00211 }
00212
00213 JString FeatureCombiSpace::toXML() {
00214 return JString::format("<featurecombispace></featurecombispace>");
00215 }
00216
00217 bool FeatureCombiSpace::fromXML(XMLNode* node) {
00218 if (node == NULL) {
00219 return false;
00220 }
00221 if (!node->getTag().equalsIgnoreCase("featurecombispace"))
00222 return false;
00223
00224
00225
00226
00227
00228
00229
00230
00231 return true;
00232 }
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256 FeatureSpaceTime::FeatureSpaceTime() {
00257 }
00258
00259 FeatureSpaceTime::~FeatureSpaceTime() {
00260 }
00261
00262 FeatureSpaceTime::FeatureSpaceTime(JString xml) {
00263 if (!Object::fromXML(xml)) {
00264 }
00265 }
00266
00267 FeatureSpaceTime::FeatureSpaceTime(XMLNode* node) {
00268 if (!fromXML(node)) {
00269 }
00270 }
00271
00272 Object* FeatureSpaceTime::clone() const {
00273 FeatureSpaceTime* l = new FeatureSpaceTime();
00274 *l = *this;
00275 return l;
00276 }
00277
00278 JString FeatureSpaceTime::print() {
00279 return JString::format("FeatureSpaceTime: Features: %d", 0);
00280 }
00281
00282 JString FeatureSpaceTime::toXML() {
00283 return JString::format("<featurespacetime></featurespacetime>");
00284 }
00285
00286 bool FeatureSpaceTime::fromXML(XMLNode* node) {
00287 if (node == NULL) {
00288 return false;
00289 }
00290 if (!node->getTag().equalsIgnoreCase("featurespacetime"))
00291 return false;
00292
00293
00294
00295
00296
00297
00298
00299
00300 return true;
00301 }
00302
00303
00304
00305
00306
00307
00308
00309
00310 }