- Timestamp:
- Mar 12, 2012, 10:31:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvZincBlendeReconstructor.h
r2822 r2844 28 28 class NvZincBlendeReconstructor 29 29 { 30 char buff[255];31 32 /**33 * @brief A ZincBlendeReconstructor Singleton instance34 */35 static NvZincBlendeReconstructor* _instance;36 private:37 /**38 * @brief Constructor39 */40 NvZincBlendeReconstructor();41 42 /**43 * @brief Destructor44 */45 ~NvZincBlendeReconstructor();46 47 public:48 /**49 * @brief Return a singleton instance50 */51 static NvZincBlendeReconstructor* getInstance();52 53 private:54 /**55 * @brief Get a line from file. It is used for reading header because header is written in ascii.56 * @param fp A file pointer of data file57 */58 void getLine(std::istream& stream);59 void getLine(unsigned char*& stream);60 61 30 public: 62 31 /** … … 64 33 * @param fileName Zinc blende file name, which data is generated by NEMO-3D 65 34 */ 66 ZincBlendeVolume *loadFromFile(const char *fileName);35 ZincBlendeVolume *loadFromFile(const char *fileName); 67 36 68 37 /** … … 71 40 */ 72 41 ZincBlendeVolume *loadFromStream(std::istream& stream); 42 73 43 ZincBlendeVolume *loadFromMemory(void *dataBlock); 74 44 … … 84 54 ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta, 85 55 int width, int height, int depth, void *data); 56 86 57 ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta, 87 58 int width, int height, int depth, 88 59 int datacount, double emptyvalue, void *data); 60 61 /** 62 * @brief Return a singleton instance 63 */ 64 static NvZincBlendeReconstructor* getInstance(); 65 66 private: 67 NvZincBlendeReconstructor(); 68 69 ~NvZincBlendeReconstructor(); 70 71 /** 72 * @brief Get a line from file. It is used for reading header because header is written in ascii. 73 * @param fp A file pointer of data file 74 */ 75 void getLine(std::istream& stream); 76 void getLine(unsigned char*& stream); 77 78 char buff[255]; 79 80 /// A ZincBlendeReconstructor Singleton instance 81 static NvZincBlendeReconstructor* _instance; 89 82 }; 90 83
Note: See TracChangeset
for help on using the changeset viewer.