46 static void registerVLXCoreWrappers();
53 #if defined(VL_IO_2D_JPG) 56 #if defined(VL_IO_2D_PNG) 59 #if defined(VL_IO_2D_TIFF) 62 #if defined(VL_IO_2D_TGA) 65 #if defined(VL_IO_2D_DAT) 68 #if defined(VL_IO_2D_MHD) 71 #if defined(VL_IO_2D_DDS) 74 #if defined(VL_IO_2D_BMP) 77 #if defined(VL_IO_2D_DICOM) 102 bool gInitializedCore =
false;
107 void VisualizationLibrary::initCore(
bool log_info)
110 if (gInitializedCore) {
111 Log::bug(
"VisualizationLibrary::initCore(): Visualization Library Core is already initialized!\n");
137 registerVLXCoreWrappers();
144 #if defined(VL_IO_2D_JPG) 147 #if defined(VL_IO_2D_PNG) 150 #if defined(VL_IO_2D_TIFF) 153 #if defined(VL_IO_2D_TGA) 156 #if defined(VL_IO_2D_BMP) 159 #if defined(VL_IO_2D_DDS) 162 #if defined(VL_IO_2D_DAT) 165 #if defined(VL_IO_2D_MHD) 168 #if defined(VL_IO_2D_DICOM) 177 gInitializedCore =
true;
180 void VisualizationLibrary::shutdownCore()
182 if ( ! gInitializedCore ) {
183 Log::debug(
"VisualizationLibrary::shutdownCore(): VL Core not initialized.\n");
187 gInitializedCore =
false;
206 Log::debug(
"VisualizationLibrary::shutdownCore().\n");
215 void registerVLXCoreWrappers()
static void debug(const String &message)
Use this function to provide extra information useful to investigate and solve problems.
std::vector< ref< VirtualDirectory > > & directories()
Returns the list of VirtualDirectory objects added to a FileSystem.
VLCORE_EXPORT FileSystem * defFileSystem()
Returns the default FileSystem used by VisualizationLibrary.
VLCORE_EXPORT void logSystemInfo()
Logs VL and system information.
const std::vector< ref< WriteCallback > > & writeCallbacks() const
static VLMAIN_EXPORT bool isCoreInitialized()
Returns true if VLCore library is initialized and shutdown has not been called.
The LoadWriterTGA class is a ResourceLoadWriter capable of reading TGA files.
void setLogFile(const String &file)
Global application settings controlling how Visualization Library behaves.
const std::vector< ref< LoadCallback > > & loadCallbacks() const
The LoadWriterManager class loads and writes resources using the registered ResourceLoadWriter object...
The LoadWriterDDS class is a ResourceLoadWriter capable of reading DDS files.
A VirtualDirectory that operates on reguar disk directories.
The LoadWriterJPG class is a ResourceLoadWriter capable of reading JPG files.
VLCORE_EXPORT void setGlobalSettings(GlobalSettings *)
Sets VisulizationLibrary's global settings.
Visualization Library main namespace.
The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files.
The LoadWriterDICOM class is a ResourceLoadWriter capable of reading DICOM files (.dcm, .dicom, .dic, .ima, .ph, .mag) using GDCM 2.0 library.
static void bug(const String &message)
Use this function to provide information about programming errors: wrong parameter initialization...
The LoadWriterDAT class is a ResourceLoadWriter capable of reading DAT files.
Manages multiple VirtualDirectory objects.
A vl::ResourceLoadWriter capable of reading Visualization Library's VLT and VLB files.
The LoadWriterTIFF class is a ResourceLoadWriter capable of reading TIFF files.
VLCORE_EXPORT void setDefFileSystem(FileSystem *fs)
Sets the default FileSystem used by VisualizationLibrary.
std::vector< ref< ResourceLoadWriter > > & loadWriters()
Returns the set of registered ResourceLoadWriter objects.
The StandardLog class outputs the log messages on the stdout device and optionally also on a specifie...
VLCORE_EXPORT void setDefLoadWriterManager(LoadWriterManager *lwm)
Sets the default LoadWriterManager used by Visualization Library.
Registry of vl::ClassWrapper objects, used by vl::VLXSerializer, see also vl::defVLXRegistry().
VLCORE_EXPORT void setDefLogger(Log *logger)
Installs the default logger used by Visualization Library. Setting this to NULL will disable logging...
VLCORE_EXPORT void setDefMersenneTwister(MersenneTwister *)
The ref<> class is used to reference-count an Object.
The LoadWriterBMP class is a ResourceLoadWriter capable of reading BMP files.
The LoadWriterMHD class is a ResourceLoadWriter capable of reading MHD files.
VLX_EXPORT void setDefVLXRegistry(Registry *reg)
VLCORE_EXPORT LoadWriterManager * defLoadWriterManager()
Returs the default LoadWriterManager used by Visualization Library.
VLCORE_EXPORT GlobalSettings * globalSettings()
Returns VisulizationLibrary's global settings.
void registerLoadWriter(ResourceLoadWriter *rlw)
Utility function, equivalent to defLoadWriterManager()->registerLoadWriter(rlw).