VR-Vantage 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ciMovieMerge.h
Go to the documentation of this file.
1 
2 // Copyright JRM Enterprises, Inc. 2004
3 // All rights reserved.
4 //
5 // This code is the intellectual property of JRM Enterprises, Inc.
6 // It may not be used or released as source or compiled binary form
7 // without the prior written consent of JRM Enterprises, Inc.
8 //
9 // Original Author: Tim George
10 // Date: Oct 2005
11 //
12 //
13 //
15 
16 #if !defined(_CIMOVIEMERGE_H_)
17 #define _CIMOVIEMERGE_H_
18 
19 #if _MSC_VER > 1000
20 #pragma once
21 #endif // _MSC_VER > 1000
22 
26 #include <iostream>
27 #include <fstream>
28 #include <string.h>
29 #include "ciApi.h"
30 #include "clXML.h"
31 #include "clXMLNode.h"
32 
34 {
35 public: // methods
36 
38  //getUsePicture
43  bool getUsePicture(){
44  if(m_useMovieMerge)
45  return m_usePicture;
46  else
47  return false;
48  }
49 
51  //getSaveImages
56  bool getSaveImages(){
57  if(m_useMovieMerge)
58  return m_saveImages;
59  else
60  return false;
61  }
62 
64  //getTerrainVisiblity
70  if(m_useMovieMerge)
71  return m_terrainVisiblity;
72  else
73  return true;
74  }
76  //*getImageFileName
82  if(m_useMovieMerge)
83  return m_imageFileName;
84  else
85  return (char *)"";
86  }
88  //getImageCount
93  int getImageCount(){return m_imageCount;}
95  //getPercentContrast
100  double getPercentContrast(){return m_percentContrast;}
102  //setPercentContrast
107  void setPercentContrast(double percent){m_percentContrast = percent;}
109  //getPercentContrast
114  int getFramerate(){return m_framerate;}
116  //setPercentContrast
121  void setFramerate(int rate){
122  if(rate < 0)
123  rate = 1;
124  if(rate > 120)
125  rate = 120;
126  m_framerate = rate;
127  }
128 
130  //setUsePicture
135  void setUsePicture(bool usePicture){
136  m_usePicture = usePicture;}
138  //setSaveImages
143  void setSaveImages(bool saveImages){
144  m_saveImages = saveImages;}
146  //setTerrainVisiblity
151  void setTerrainVisiblity(bool terrainVisiblity){m_terrainVisiblity = terrainVisiblity;}
153  //setImageFileName
158  void setImageFileName(char *imageFileName){strncpy(m_imageFileName, imageFileName, sizeof(m_imageFileName));}
160  //setImageCount
165  void setImageCount(int imageCount){m_imageCount = imageCount;}
167  //setTargetEntity
172  void setTargetEntity(int targetEntity){m_targetEntity = targetEntity;}
174  //getTargetEntity
179  int getTargetEntity(){return m_targetEntity;}
180 
182  //getUseMovieMerge
187  bool getUseMovieMerge() { return m_useMovieMerge; }
188 
190  //setUseMovieMerge
195  void setUseMovieMerge(bool flag) { m_useMovieMerge = flag; }
196 
197  int getStartImageNum() { return m_startImageNum; }
198 
199  void setStartImageNum(int num) { m_startImageNum = num; }
200 
202  // archive
210  bool archive(std::ofstream &outf);
211 
213  // serialize
221  bool serialize(char *filepath);
222 
223  //
224  // loadXML
225  //
226  // \par Description:
227  // Loads attributes from an XML node
228  //
229  // \param clXMLNode* trackNode
230  // \return bool
231  //
232  bool loadXML(clXMLNode* trackNode);
233 
234  //
235  // parseXML
236  //
237  // \par Description:
238  // Parses an XML document for specific tags
239  //
240  // \param clXML xmlDocument
241  // \return bool
242  //
243  bool parseXML(clXML& xmlDocument);
244 
246  //loadXMLNode
253  bool loadXMLNode(std::string tag, char *nodeString);
255  //loadXMLNode
262  bool loadXMLNode(std::string tag, bool *nodeBool);
264  //loadXMLNode
271  bool loadXMLNode(std::string tag, int *nodeBool);
273  //loadXMLNode
280  bool loadXMLNode(std::string tag, double *nodeBool);
281 
282  //
283  // saveXML
284  //
285  // \par Description:
286  // Saves XML nodes to an XML document
287  //
288  // \param clXML* xmlDocument
289  //
290  void saveXML(clXML* xmlDocument);
291 
293  // operator =
301  ciMovieMerge operator = (ciMovieMerge &obj);
302 
303 protected: // methods
304 
305 public: // construction/destruction
306 
308  // ciTrack
313  ciMovieMerge();
314 
316  // ciTrack
324 
326  //~ciMovieMerge
330  virtual ~ciMovieMerge();
331 
332 
333 
334 protected: // variables
336  char m_imageFileName[256];
346 private: // variables
347 
348 };
349 
350 #endif // _ciTRACK_H_


Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)