- Timestamp:
- Mar 7, 2012 12:21:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/nanovis/NvZincBlendeReconstructor.h
r2798 r2822 14 14 * ====================================================================== 15 15 */ 16 17 16 #ifndef __NV_ZINC_BLENDE_RECONSTRUCTOR_H__ 18 17 #define __NV_ZINC_BLENDE_RECONSTRUCTOR_H__ … … 27 26 class ZincBlendeVolume; 28 27 29 class NvZincBlendeReconstructor { 28 class NvZincBlendeReconstructor 29 { 30 30 char buff[255]; 31 31 … … 34 34 */ 35 35 static NvZincBlendeReconstructor* _instance; 36 private 36 private: 37 37 /** 38 38 * @brief Constructor … … 45 45 ~NvZincBlendeReconstructor(); 46 46 47 public 47 public: 48 48 /** 49 49 * @brief Return a singleton instance … … 51 51 static NvZincBlendeReconstructor* getInstance(); 52 52 53 private 53 private: 54 54 /** 55 55 * @brief Get a line from file. It is used for reading header because header is written in ascii. … … 58 58 void getLine(std::istream& stream); 59 59 void getLine(unsigned char*& stream); 60 61 public 60 61 public: 62 62 /** 63 63 * @brief Load Zinc blende binary volume data and create ZincBlendeVolume with the file 64 64 * @param fileName Zinc blende file name, which data is generated by NEMO-3D 65 65 */ 66 ZincBlendeVolume *loadFromFile(const char* fileName);66 ZincBlendeVolume *loadFromFile(const char* fileName); 67 67 68 68 /** … … 70 70 * @param data Zinc blende binary volume data, which data is generated by NEMO-3D and transferred from nanoscale 71 71 */ 72 ZincBlendeVolume *loadFromStream(std::istream& stream);73 ZincBlendeVolume * loadFromMemory(void*dataBlock);72 ZincBlendeVolume *loadFromStream(std::istream& stream); 73 ZincBlendeVolume *loadFromMemory(void *dataBlock); 74 74 75 75 /** … … 82 82 * @param data the memory block of output data of NEMO-3D 83 83 */ 84 ZincBlendeVolume* buildUp(const Vector3& origin, const Vector3& delta, int width, int height, int depth, void* data); 85 ZincBlendeVolume* buildUp(const Vector3& origin, const Vector3& delta, int width, int height, int depth, int datacount, double emptyvalue, void* data); 84 ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta, 85 int width, int height, int depth, void *data); 86 ZincBlendeVolume *buildUp(const Vector3& origin, const Vector3& delta, 87 int width, int height, int depth, 88 int datacount, double emptyvalue, void *data); 86 89 }; 87 90 88 91 #endif 89
Note: See TracChangeset
for help on using the changeset viewer.