40 #if !defined(SCI_Teem_NrrdData_h)
41 #define SCI_Teem_NrrdData_h
43 #include <Core/Thread/Guard.h>
46 #include <Core/Datatypes/Field.h>
47 #include <Core/Containers/LockingHandle.h>
48 #include <teem/nrrd.h>
65 NrrdData(LockingHandle<Datatype> data_owner);
80 { nrrd_fname_ = f; embed_object_ =
false; }
90 static void lock_teem();
91 static void unlock_teem();
96 bool in_name_set(
const std::string &s)
const;
163 return nrrdTypeDouble;
167 std::string & typeStr,
168 std::string & typeName );
186 #endif // SCI_Teem_NrrdData_h
const std::string get_filename() const
Definition: NrrdData.h:81
virtual std::string dynamic_type_name() const
Definition: NrrdData.h:73
int get_nrrd_type< short >()
Definition: NrrdData.cc:705
int get_nrrd_type< Tensor >()
Definition: NrrdData.cc:684
Nrrd * nrrd_
Definition: NrrdData.h:61
int get_nrrd_type< int >()
Definition: NrrdData.cc:719
int string_to_nrrd_type(const std::string &str)
Definition: NrrdData.cc:814
int get_nrrd_type()
Definition: NrrdData.h:161
Definition: NrrdData.h:174
Definition: Persistent.h:89
int get_nrrd_type< unsigned char >()
Definition: NrrdData.cc:698
Definition: Persistent.h:187
#define SCISHARE
Definition: share.h:39
int get_nrrd_type< float >()
Definition: NrrdData.cc:747
static PersistentTypeID type_id
Definition: NrrdData.h:72
bool write_nrrd_
Definition: NrrdData.h:83
int get_nrrd_type< unsigned int >()
Definition: NrrdData.cc:726
int get_nrrd_type< long long >()
Definition: NrrdData.cc:733
void get_nrrd_compile_type(const unsigned int type, std::string &typeStr, std::string &typeName)
Definition: NrrdData.cc:753
Definition: NrrdData.h:56
int get_nrrd_type< unsigned short >()
Definition: NrrdData.cc:712
bool embed_object_
Definition: NrrdData.h:94
int get_nrrd_type< char >()
Definition: NrrdData.cc:691
std::string nrrd_fname_
Definition: NrrdData.h:102
double get_nrrd_value(Nrrd *nrrd, unsigned int p)
Definition: NrrdData.cc:844
v
Definition: readAllFields.py:42
LockingHandle< Datatype > data_owner_
Either the NrrdData owns the data or it wraps this external object.
Definition: NrrdData.h:99
std::string nrrd_type_to_string(unsigned int ntype)
Definition: NrrdData.cc:805
LockingHandle< NrrdData > NrrdDataHandle
Definition: NrrdData.h:108
bool get_embed_object()
Definition: NrrdData.h:77
void set_embed_object(bool v)
Definition: NrrdData.h:76
Definition: Persistent.h:64
void set_filename(const std::string &f)
Definition: NrrdData.h:79
int get_nrrd_type< unsigned long long >()
Definition: NrrdData.cc:740
Definition: PropertyManager.h:193