Fovia's C++ Server API
Classes | Macros | Typedefs | Enumerations | Functions
hdrcsrvlib.h File Reference

Classes

struct  IHdrcServer
 
struct  IHdrcSession
 
struct  LOAD_DATASET
 

Macros

#define HDRCSRV_SDK_VERSION   FOVIA_SDK_VERSION
 

Typedefs

typedef enum ENUM_SERVER_OPTIONS ENUM_SERVER_OPTIONS
 
typedef enum ENUM_SESSION_RENDER_OPTIONS ENUM_SESSION_RENDER_OPTIONS
 
typedef enum ENUM_SESSION_STATUS ENUM_SESSION_STATUS
 
typedef enum ENUM_STREAM_CATEGORY ENUM_STREAM_CATEGORY
 
typedef signed int( loadfunc) (signed int loadtype, char *psz, IVolumeData **, ITaskProgress *piTask, signed long long taskID)
 
typedef signed int( segmentfunc) (signed int segmenttype, char *psz, IVolumeData *, IVolumeOctree *, ITaskProgress *piTask, signed long long taskID)
 

Enumerations

enum  ENUM_LOAD_FUNC { LF_CUSTOM_START = 1000, LF_CUSTOM = 1000, LF_CUSTOM_MM = 1001, LF_CUSTOM_END = 1100 }
 
enum  ENUM_SEGMENT_FUNC { SF_CUSTOM_START = 1000, SF_CUSTOM = 1000, SF_CUSTOM_MM = 1001, SF_CUSTOM_END = 1100 }
 
enum  ENUM_SERVER_OPTIONS { SO_NONE = 0 }
 
enum  ENUM_SESSION_RENDER_OPTIONS { SRO_NONE = 0, SRO_TEST_SESSION = 1 << 0, SRO_MPR_USE_VIEWPORT_EQUAL_PROJECTION = 1 << 1, SRO_PEG_CPUS = 1 << 2 }
 
enum  ENUM_SESSION_STATUS { SS_CONNECTED, SS_DISCONNECTED }
 
enum  ENUM_STREAM_CATEGORY {
  SC_STD_LOG = 1 << 0, SC_ERR_LOG = 1 << 1, SC_IN = 1 << 2, SC_OUT = 1 << 3,
  SC_INOUT = SC_IN | SC_OUT
}
 

Functions

template<>
const BGUIDGetInterfaceBGUID (IHdrcSession *)
 
template<>
const BGUIDGetInterfaceBGUID (IHdrcServer *)
 
signed int hdrcCreateServer (signed int hdrc_sdk_version, IHdrcServer **pp)
 
signed int hdrcsrvOpenLibrary (signed int sdk_version, struct ILibrary **pp)
 

Macro Definition Documentation

#define HDRCSRV_SDK_VERSION   FOVIA_SDK_VERSION

defines the current SDK version

Function Documentation

signed int hdrcCreateServer ( signed int  hdrc_sdk_version,
IHdrcServer **  pp 
)

This function provides pointer to IHdrcServer interface, that supports creation of other sub-objects.

INPORTANT: If Fovia HDVR Server API is used from Java using JNI under Linux, please set LD_PRELOAD environment variable to libjsig.so. This library can be found under Sun's JRE or JDK. This shared object reflects signals intended for JVM. If this environment is not set, it might result in unintended behavior.

Parameters
hdrc_sdk_versionshall be set to HDRCSRV_SDK_VERSION. This identifier is passed to this function in order to ensure that an application was built against the correct header files. This value is modified whenever a header or other change would require applications to be rebuilt. If the version does not match, this function will fail.
pppointer to interface pointer