Fovia's Java Client/Server API
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
com.fovia.hdrc.hdrcVertexCallListContext Class Reference
Inheritance diagram for com.fovia.hdrc.hdrcVertexCallListContext:
com.fovia.hdrcsrv.hdrcDefines

Public Member Functions

void centerVerticesOnAverageLocation ()
 
MESH_PROPS cleanMesh (boolean bDoClean)
 
int colorizeFromVolumeData (hdrcRenderEngineContext referenceEngine, float offset, boolean bVRColor)
 
int convertToIndexBuffer ()
 
int getCullMode ()
 
int getFlags ()
 
long getId ()
 
float getLineWidth ()
 
long getNID ()
 
int getNumIndices ()
 
int getNumVertices ()
 
boolean getTextureLighting ()
 
hdrcTextureMapContext getTextureMap ()
 
hdrcRenderEngineContext getTextureMapEngine ()
 
MATRIX44D getTransform ()
 
int getType ()
 
boolean initFromOBJ (OBJFile objFile)
 
boolean initFromOBJIndexBufferNormalsRequired (OBJFile objFile)
 
int invalidateClientState (int updateFlags)
 
boolean isEdited ()
 
byte[] lockColors (int min, int max)
 
int[] lockIndices (int min, int max)
 
float[] lockNormals (int min, int max)
 
byte[] lockShadingEnabled (int min, int max)
 
float[] lockTextureCoords (int min, int max)
 
float[] lockVertices (int min, int max)
 
int optimize (boolean bCleanIslands, double islandPercentage, boolean bDecimate, double decimatePercentage, boolean bSmoothBefore, boolean bSmoothAfter, double smoothParam, boolean bFlip)
 
long releaseSessionResources () throws IOException
 
int setCullMode (int cullMode)
 
void setFlags (int flags)
 
void setLineWidth (float width)
 
void setNumIndices (int num)
 
void setNumVertices (int num)
 
int setRenderToTextureParameters (RENDER_PARAMS rp)
 
int setTextureLighting (boolean bTextureLighting)
 
int setTextureMap (hdrcTextureMapContext textureMap)
 
int setTextureMapEngine (hdrcRenderEngineContext engineMap)
 
void setTransform (MATRIX44D mat)
 
void setType (int type)
 
void setUniformColor (int r, int g, int b, int a)
 
void setUniformShadingEnabled (boolean bVal)
 
void unlockColors (boolean bChangesMade, int min, int max)
 
void unlockIndices (boolean bChangesMade, int min, int max)
 
void unlockNormals (boolean bChangesMade, int min, int max)
 
void unlockShadingEnabled (boolean bChangesMade, int min, int max)
 
void unlockTextureCoords (boolean bChangesMade, int min, int max)
 
void unlockVertices (boolean bChangesMade, int min, int max)
 

Protected Member Functions

native int cleanMesh (long nid, boolean bDoClean, MESH_PROPS meshProps)
 
native int colorizeFromVolumeData (long nid, long eid, float offset, boolean bVRColor)
 
native int convertToIndexBuffer (long nid)
 
native int getFlags (long nid)
 
native long getId (long nid)
 
native float getLineWidth (long nid)
 
native int getNumIndices (long nid)
 
native int getNumVertices (long nid)
 
native int getTransform (long nid, MATRIX44D mat)
 
native int getType (long nid)
 
 hdrcVertexCallListContext (hdrcServerContext sc, hdrcSerializer ser, long id)
 
native int invalidateClientState (long nid, int updateFlags)
 
native boolean isEdited (long nid)
 
native byte[] lockColors (long nid, int min, int max)
 
native int[] lockIndices (long nid, int min, int max)
 
native float[] lockNormals (long nid, int min, int max)
 
native byte[] lockShadingEnabled (long nid, int min, int max)
 
native float[] lockTextureCoords (long nid, int min, int max)
 
native float[] lockVertices (long nid, int min, int max)
 
native int optimize (long nid, boolean bCleanIslands, double islandPercentage, boolean bDecimate, double decimatePercentage, boolean bSmoothBefore, boolean bSmoothAfter, double smoothParam, boolean bFlip)
 
native long releaseSessionResources (long nid)
 
native int setCullMode (long nid, int cullMode)
 
native int setFlags (long nid, int flags)
 
native int setLineWidth (long nid, float width)
 
native int setNumIndices (long nid, int num)
 
native int setNumVertices (long nid, int num)
 
native int setRenderToTextureParameters (long nid, RENDER_PARAMS rp)
 
native int setTextureLighting (long nid, boolean bTextureLighting)
 
native int setTextureMap (long nid, long txId)
 
native int setTextureMapEngine (long nid, long engineId)
 
native int setTransform (long nid, MATRIX44D mat)
 
native int setType (long nid, int type)
 
native int unlockColors (long nid, byte colors[], boolean bChangesMade, int min, int max)
 
native int unlockIndices (long nid, int indices[], boolean bChangesMade, int min, int max)
 
native int unlockNormals (long nid, float norms[], boolean bChangesMade, int min, int max)
 
native int unlockShadingEnabled (long nid, byte shading[], boolean bChangesMade, int min, int max)
 
native int unlockTextureCoords (long nid, float norms[], boolean bChangesMade, int min, int max)
 
native int unlockVertices (long nid, float verts[], boolean bChangesMade, int min, int max)
 

Protected Attributes

boolean m_bTextureLighting
 
byte m_cachedColors []
 
int m_cachedIndices []
 
float m_cachedNorms []
 
byte m_cachedShadingEnabled []
 
float m_cachedTextureCoords []
 
float m_cachedVerts []
 
int m_cullMode
 
hdrcRenderEngineContext m_engineMap
 
float m_lineWidth
 
hdrcTextureMapContext m_textureMap
 
MATRIX44D m_transform
 
int m_type
 

Additional Inherited Members

- Static Public Attributes inherited from com.fovia.hdrcsrv.hdrcDefines
static final int CID_APPLY_AS_COLORIZATION_MAP = 66
 
static final int CID_APPLY_VOLUMETRIC_SHADOW_MAP = 72
 
static final int CID_AUTONAVIGATE = 29
 
static final int CID_CHECK_CHANNEL = 23
 
static final int CID_CREATE_IVOLUMESEGMENTATION = 26
 
static final int CID_CREATE_POLYGONUTIL = 60
 
static final int CID_CREATE_RENDER_ENGINE = 2
 
static final int CID_CREATE_VERTEX_CALL_LIST = 53
 
static final int CID_CREATE_VOLUME_OCTREE = 4
 
static final int CID_CREATE_VOLUME_SHADOW = 74
 
static final int CID_FAST_SWAP = 44
 
static final int CID_FIND_PATH = 52
 
static final int CID_FINISH_JOB = 16
 
static final int CID_GET_COLORIZATION = 58
 
static final int CID_GET_CURVED_REFORMAT = 43
 
static final int CID_GET_DATA_HOLDER = 20
 
static final int CID_GET_HISTOGRAM = 28
 
static final int CID_GET_JOB_INFO = 15
 
static final int CID_GET_RENDER_ENGINE_TF_COUNT = 65
 
static final int CID_GET_RENDER_PARAMS = 6
 
static final int CID_GET_SEGMENTATION = 30
 
static final int CID_GET_TRANSFER_FUNCTION = 57
 
static final int CID_GET_VISIBILITY_INFO = 39
 
static final int CID_GET_VOLUME_DATA_PARAMS = 17
 
static final int CID_GETDICOMTAGS = 35
 
static final int CID_IS_RENDERING_FINISHED = 27
 
static final int CID_IVOLUMESEGMENTATION_CALL = 25
 
static final int CID_LOAD_DICOM_FILE_LIST = 33
 
static final int CID_LOAD_PRESET = 9
 
static final int CID_LOAD_RAW_FILES = 62
 
static final int CID_LOAD_SERIES_FROM_DICOM_LIST = 34
 
static final int CID_LOAD_VOLUME_DATA = 1
 
static final int CID_OUTPUTDICOMIMAGES = 37
 
static final int CID_POLYGONUTIL_CALL = 61
 
static final int CID_PROJECT_POINT = 13
 
static final int CID_PROJECT_VOLUMETRIC_SHADOW = 45
 
static final int CID_RELEASE_ALL_SESSION_OBJECT = 55
 
static final int CID_RELEASE_SESSION_OBJECT = 19
 
static final int CID_RENDER = 7
 
static final int CID_RENDER_SHADOW_LIGHT = 73
 
static final int CID_RETRIEVE_DATA = 22
 
static final int CID_SAVE_PRESET = 18
 
static final int CID_SCAN_DICOM_DIRECTORY = 32
 
static final int CID_SET_CLIENT_VERSION = 64
 
static final int CID_SET_COLORIZATION = 59
 
static final int CID_SET_COLORIZATION_COLORS = 51
 
static final int CID_SET_COLORIZATION_ENABLED = 49
 
static final int CID_SET_COLORIZATION_INDEX = 50
 
static final int CID_SET_CURVED_MPR_PATH = 42
 
static final int CID_SET_FAST_POLYGONS_ENABLED = 67
 
static final int CID_SET_FRAMES_PER_PHASE = 48
 
static final int CID_SET_PHASE = 47
 
static final int CID_SET_RENDER_PARAMS = 5
 
static final int CID_SET_SEG_BOUNDARIES = 70
 
static final int CID_SET_SEGMENTATION = 31
 
static final int CID_SET_TRANSFER_FUNCTION = 56
 
static final int CID_SET_VIEW_MODE = 24
 
static final int CID_SET_VOLUME_DATA = 3
 
static final int CID_SET_VOLUME_DATA_4D = 46
 
static final int CID_SETDICOMTAGS = 36
 
static final int CID_SETRP_AND_RENDER = 8
 
static final int CID_SETRP_RENDER_AND_SEND_PREV = 41
 
static final int CID_SHOOT_RAY = 12
 
static final int CID_SHOOT_RAY_FAST = 38
 
static final int CID_SHOOT_RAY_GET_WALL = 69
 
static final int CID_START_JOB = 14
 
static final int CID_STORE_DATA = 21
 
static final int CID_TESTFUNCTION = 63
 
static final int CID_UPDATE_OCTREE = 68
 
static final int CID_UPDATE_VERTEX_CALL_LISTS = 54
 
static final int CID_VOLUME_SHADOW_CALL = 71
 
static final int CID_WAIT_PREV_RENDER = 40
 
static final int CM_DILATION = 5
 
static final int CM_EROSION = 4
 
static final int CM_MIN_MAX = 0
 
static final int CM_MIN_MAX_BONE = 3
 
static final int CM_MIN_MAX_SMART = 1
 
static final int CM_MIN_MAX_SMART_EXPAND = 2
 
static final int COLOR_MODEL_GRAYSCALE12 = COLOR_MODEL_GRAYSCALE8+1
 
static final int COLOR_MODEL_GRAYSCALE8 = COLOR_MODEL_NONE+1
 
static final int COLOR_MODEL_NONE = 0
 
static final int COLOR_MODEL_RGB = COLOR_MODEL_GRAYSCALE12+1
 
static final int COMPRESSION_TYPE_JPEG = COMPRESSION_TYPE_ZIP+1
 
static final int COMPRESSION_TYPE_JPEG2000 = COMPRESSION_TYPE_STRETCH+1
 
static final int COMPRESSION_TYPE_JPEG_RGB = COMPRESSION_TYPE_PNG+1
 
static final int COMPRESSION_TYPE_NONE = 0
 
static final int COMPRESSION_TYPE_PNG = COMPRESSION_TYPE_RLE+1
 
static final int COMPRESSION_TYPE_RLE = COMPRESSION_TYPE_JPEG2000+1
 
static final int COMPRESSION_TYPE_STRETCH = COMPRESSION_TYPE_JPEG+1
 
static final int COMPRESSION_TYPE_ZIP = COMPRESSION_TYPE_NONE+1
 
static final int CP_FRAGMENT_FORM_MASK = 0x0000C000
 
static final int CP_FRAGMENT_FORM_SQUARE = 0x00004000
 
static final int CP_FRAGMENT_FORM_STRIPE = 0x00008000
 
static final int CP_FRAGMENT_ID_MASK = 0x000000FF
 
static final int CP_FRAGMENT_ID_SHIFT = 0
 
static final int CP_FRAGMENT_NONE = 0x0
 
static final int CP_FRAGMENT_PACKING_FRAGMENT_ONLY = 0x00001000
 
static final int CP_FRAGMENT_PACKING_MASK = 0x0000F000
 
static final int CP_FRAGMENT_PACKING_SHIFT = 11
 
static final int CP_FRAGMENT_PACKING_TYPE_MASK = 0x00003000
 
static final int CP_FRAGMENT_PACKING_WHOLE_IMAGE = 0x00000000
 
static final int CP_FRAGMENT_SQUARE_SIZE = 256
 
static final int CP_FRAGMENT_STRIPE_SIZE = 128
 
static final int CP_FRAGMENT_VALID = 0x70000000
 
static final int CULL_MODE_BACK = 1
 
static final int CULL_MODE_BACK_INV = 2
 
static final int CULL_MODE_NONE = 0
 
static final int CURVED_MPR_TYPE_X_IS_CURVED = CURVED_MPR_TYPE_X_IS_CURVED_TRILINEAR
 
static final int CURVED_MPR_TYPE_X_IS_CURVED_TRICUBIC = CURVED_MPR_TYPE_Y_IS_CURVED_TRILINEAR+1
 
static final int CURVED_MPR_TYPE_X_IS_CURVED_TRILINEAR = 0
 
static final int CURVED_MPR_TYPE_Y_IS_CURVED = CURVED_MPR_TYPE_Y_IS_CURVED_TRILINEAR
 
static final int CURVED_MPR_TYPE_Y_IS_CURVED_TRICUBIC = CURVED_MPR_TYPE_X_IS_CURVED_TRICUBIC+1
 
static final int CURVED_MPR_TYPE_Y_IS_CURVED_TRILINEAR = CURVED_MPR_TYPE_X_IS_CURVED_TRILINEAR+1
 
static final int CUT_PLANE_MODE_MAX_DISTANCE = CUT_PLANE_MODE_STANDARD+1
 
static final int CUT_PLANE_MODE_MIN_DISTANCE = CUT_PLANE_MODE_MAX_DISTANCE+1
 
static final int CUT_PLANE_MODE_STANDARD = 0
 
static final int CUT_PLANE_STATUS_DISABLED = 0
 
static final int CUT_PLANE_STATUS_ENABLED = CUT_PLANE_STATUS_DISABLED+1
 
static final int CUT_PLANE_TYPE_NEGATIVE = CUT_PLANE_TYPE_POSITIVE+1
 
static final int CUT_PLANE_TYPE_POSITIVE = 0
 
static final int DEFAULT_RENDER_IMAGE_HEIGHT = 512
 
static final int DEFAULT_RENDER_IMAGE_WIDTH = 512
 
static final int DO_SLICE = 0
 
static final int DT_BIG_ENDIAN = 2
 
static final int DT_MONOCHROME_1 = 16
 
static final int DT_REVERSE_BIT_ORDER = 4
 
static final int DT_SIGNED = 1
 
static final int DT_UPPER_BITS_DIRTY = 8
 
static final int E_FAIL = 0x80004005
 
static final int E_INVALIDARG = 0x80070057
 
static final int E_NOINTERFACE = 0x80004002
 
static final int E_NOTIMPL = 0x80004001
 
static final int E_OUTOFMEMORY = 0x8007000E
 
static final int E_PENDING = 0x8000000A
 
static final int E_POINTER = 0x80004003
 
static final int E_UNEXPECTED = 0x8000FFFF
 
static final int EROSION_DILATION_CLASSIC = 255
 
static final int FHC_COMPLETE_VOLUME = 3
 
static final int FHC_FIRST_LAYER = 2
 
static final int FHC_SURFACE_ONLY = 1
 
static final int FHC_WHOLE_VOLUME = 0
 
static final int FPS_NO_CAP = 100000
 
static final int IMAGE_TYPE_LUMINANCE12 = (2<<8)|2
 
static final int IMAGE_TYPE_LUMINANCE16 = (3<<8)|2
 
static final int IMAGE_TYPE_LUMINANCE8 = (1<<8)|1
 
static final int IMAGE_TYPE_NONE = 0
 
static final int IMAGE_TYPE_RGB = (4<<8)|3
 
static final int IMAGE_TYPE_RGBA = (5<<8)|4
 
static final int IMAGE_TYPE_RGBX = (6<<8)|4
 
static final int LDO_DCM_UTF8 = 1002
 
static final int LDO_DICOM_DIRECTORY = 1
 
static final int LDO_DICOM_FILE_SET =3
 
static final int LDO_FILE_SET = 4
 
static final int LDO_MEMORY_BLOCK = 2
 
static final int LDO_MEMORY_MAP_SET = 5
 
static final int LDO_RAW_DATASET_PATH = 0
 
static final int LDO_SEGY_DATASET_PATH =6
 
static final int LIGHT_MODEL_BEAM = 0
 
static final int LIGHT_MODEL_HEADLIGHT = LIGHT_MODEL_BEAM+1
 
static final int LMM_ATTACHED_TO_CAMERA = 0
 
static final int LMM_ATTACHED_TO_DATASET = 1
 
static final int MAX_ALTERNATE_TRANSFER_FUNCTIONS = 7
 
static final int MAX_CT_VALUE = 1024*4-1024
 
static final int MAX_CUTPLANES = 16
 
static final int MAX_DATASET_BIT_DEPTH = 16
 
static final int MAX_DIMENSION_X = 4096
 
static final int MAX_DIMENSION_Y = 4096
 
static final int MAX_DIMENSION_Z = 4096
 
static final int MAX_OPACITY_FUNCTION_VALUE = 1024*4 - 1
 
static final int MAX_RENDER_IMAGE_HEIGHT = 8192
 
static final int MAX_RENDER_IMAGE_WIDTH = 8192
 
static final int MAX_RENDER_RANGE_POINTS = 50
 
static final int MAX_RENDER_RANGES_PARAMS = 8
 
static final float MAX_RENDER_ZOOM = 700.0f
 
static final double MAX_THIN_SLAB = 4096
 
static final int MESH_UPDATE_ALL = 63
 
static final int MESH_UPDATE_COLORS = 4
 
static final int MESH_UPDATE_INDICES = 16
 
static final int MESH_UPDATE_NORMALS = 2
 
static final int MESH_UPDATE_SHADING = 8
 
static final int MESH_UPDATE_TEX_COORDS = 32
 
static final int MESH_UPDATE_VERTICES = 1
 
static final int MIN_CT_VALUE = 0 -1024
 
static final int MIN_OPACITY_FUNCTION_VALUE = 0
 
static final int MIN_RENDER_IMAGE_HEIGHT = 64
 
static final int MIN_RENDER_IMAGE_WIDTH = 64
 
static final float MIN_RENDER_ZOOM = 0.125f
 
static final double MIN_THIN_SLAB = 0
 
static final int PET_MARCHING_CUBES = 0
 
static final int PPM_CALL_LISTS = (1<<0)
 
static final int PPM_NONE = 0
 
static final int RENDER_ENGINE_ID_MIP = 3
 
static final int RENDER_ENGINE_ID_MPR = 0
 
static final int RENDER_ENGINE_ID_PAR = 1
 
static final int RENDER_ENGINE_ID_PER = 2
 
static final int RENDER_IMAGE_HEIGHT_STEP = 16
 
static final int RENDER_IMAGE_WIDTH_STEP = 16
 
static final int RENDER_QUALITY_BEST = RENDER_QUALITY_BETTER+1
 
static final int RENDER_QUALITY_BETTER = RENDER_QUALITY_DRAFT+1
 
static final int RENDER_QUALITY_DRAFT = RENDER_QUALITY_RAW+1
 
static final int RENDER_QUALITY_NONE = 0
 
static final int RENDER_QUALITY_PRINT = 0x7fffffff
 
static final int RENDER_QUALITY_RAW = RENDER_QUALITY_NONE+1
 
static final int RENDER_RANGE_STATUS_DISABLED = RENDER_RANGE_STATUS_ENABLED+1
 
static final int RENDER_RANGE_STATUS_ENABLED = 0
 
static final int RENDER_RANGE_TYPE_AUTO_COLOR = RENDER_RANGE_TYPE_CATMUL+1
 
static final int RENDER_RANGE_TYPE_BSPLINE = RENDER_RANGE_TYPE_LINES_END_COLOR+1
 
static final int RENDER_RANGE_TYPE_CATMUL = RENDER_RANGE_TYPE_BSPLINE+1
 
static final int RENDER_RANGE_TYPE_LINES = RENDER_RANGE_TYPE_NONE+1
 
static final int RENDER_RANGE_TYPE_LINES_END_COLOR = RENDER_RANGE_TYPE_LINES+1
 
static final int RENDER_RANGE_TYPE_NONE = 0
 
static final int RENDER_STAGE_AUTO_IMPROVE = RENDER_STAGE_CURRENT+1
 
static final int RENDER_STAGE_CURRENT = RENDER_STAGE_FINAL+1
 
static final int RENDER_STAGE_FINAL = RENDER_STAGE_PROGR5+1
 
static final int RENDER_STAGE_NONE = 0
 
static final int RENDER_STAGE_PROGR0 = RENDER_STAGE_NONE+1
 
static final int RENDER_STAGE_PROGR1 = RENDER_STAGE_PROGR0+1
 
static final int RENDER_STAGE_PROGR2 = RENDER_STAGE_PROGR1+1
 
static final int RENDER_STAGE_PROGR3 = RENDER_STAGE_PROGR2+1
 
static final int RENDER_STAGE_PROGR4 = RENDER_STAGE_PROGR3+1
 
static final int RENDER_STAGE_PROGR5 = RENDER_STAGE_PROGR4+1
 
static final int RF_ALL = 0x7FFFFFFF
 
static final int RF_ALLOW_IMAGE_SMOOTH = (1<<2)
 
static final int RF_ALLOW_RENDER_CACHE = (1<<1)
 
static final int RF_CUT_PLANES_AFFECT_POLYGONS =(1 << 13)
 
static final int RF_DEFAULT = RF_ALLOW_IMAGE_SMOOTH|RF_USE_GRADIENTS|RF_USE_SLAB_MIP
 
static final int RF_DONT_NORMALIZE_TF = (1<<7)
 
static final int RF_FRONT_CLIPPING_PLANE_ENABLED = (1<<8)
 
static final int RF_LONG_TRIANGLE_FIX =(1 << 14)
 
static final int RF_MASK_DEFAULT = RF_ALLOW_IMAGE_SMOOTH|RF_USE_GRADIENTS|RF_USE_SLAB_MPR|RF_USE_SLAB_PAR|RF_USE_SLAB_MIP|RF_POLYGON_LINES_IN_SCREEN_SPACE
 
static final int RF_NONE = (0)
 
static final int RF_POLYGON_CROSS_SECTIONS =(1 << 12)
 
static final int RF_POLYGON_LINES_IN_SCREEN_SPACE =(1 << 10)
 
static final int RF_THICK_MODES_USE_TRANSFER_FUNCTION =(1 << 9)
 
static final int RF_THIN_MODES_OUTPUT_RGB =(1 << 15)
 
static final int RF_USE_GRADIENTS = (1<<3)
 
static final int RF_USE_SLAB_MIP = (1<<6)
 
static final int RF_USE_SLAB_MPR = (1<<4)
 
static final int RF_USE_SLAB_PAR = (1<<5)
 
static final int RF_VERTEX_COLOR_MAP =(1 << 11)
 
static final int RPM_ALL = 0x7FFFFFFF
 
static final int RPM_AMBIENCE = (1 <<30)
 
static final int RPM_BACK_COLOR = (1<<17)
 
static final int RPM_BRIGHTNESS = (1<<18)
 
static final int RPM_COLOR_MODEL = (1<<7)
 
static final int RPM_CROP_BOX = (1<<16)
 
static final int RPM_CUT_PLANES = (1<<23)
 
static final int RPM_DEFAULT = RPM_ALL
 
static final int RPM_DESIRED_FPS = (1<<10)
 
static final int RPM_FRONT_SLAB_POLYGON_TRANSPARENCY = (1 <<29)
 
static final int RPM_GRAD_INSEN_SLAB = (1<<15)
 
static final int RPM_LIGHT_MODEL = (1<<9)
 
static final int RPM_LIGHT_PARAMS = (1<<27)
 
static final int RPM_MIN_QUALITY_BIAS = (1<<28)
 
static final int RPM_NONE = (0)
 
static final int RPM_NUM_RENDERING_THREADS = (1<<25)
 
static final int RPM_PHONG_PARAMETERS = RPM_AMBIENCE | RPM_BRIGHTNESS | RPM_SHININESS | RPM_REFLECTION
 
static final int RPM_QUALITY = (1<<8)
 
static final int RPM_RAYCASTING_PRECISION = (1<<21)
 
static final int RPM_REAR_SLAB_POLYGON_TRANSPARENCY = (1 <<31)
 
static final int RPM_REFLECTION = (1<<20)
 
static final int RPM_RENDER_IMAGE_SIZE = (1<<24)
 
static final int RPM_RENDER_RANGE_MIN_MAX = (1<<11)
 
static final int RPM_RENDER_RANGES = (1<<12)
 
static final int RPM_RENDER_SAMPLES = (1<<22)
 
static final int RPM_RENDER_TYPE = (1<<0)
 
static final int RPM_SHININESS = (1<<19)
 
static final int RPM_SLAB_THICKNESS = (1<<14)
 
static final int RPM_STEREO_MODE = (1<<26)
 
static final int RPM_TRANSFORM = RPM_TRANSFORM_RSS|RPM_TRANSFORM_OFFSET|RPM_TRANSFORM_PC
 
static final int RPM_TRANSFORM_OFFSET = RPM_TRANSFORM_XPOS|RPM_TRANSFORM_YPOS|RPM_TRANSFORM_ZPOS
 
static final int RPM_TRANSFORM_PC = (1<<5)
 
static final int RPM_TRANSFORM_RSS = (1<<4)
 
static final int RPM_TRANSFORM_XPOS = (1<<1)
 
static final int RPM_TRANSFORM_YPOS = (1<<2)
 
static final int RPM_TRANSFORM_ZPOS = (1<<3)
 
static final int RPM_VIEW_ANGLE = (1<<13)
 
static final int RPM_ZOOM = (1<<6)
 
static final int RT_AUTO_FADED_MIP = (1<<18)
 
static final int RT_AUTO_MINIP = (1<<19)
 
static final int RT_AUTO_MIP = (1<<17)
 
static final int RT_BRUTE_FORCE_AVE = RT_THIN_AVE
 
static final int RT_BRUTE_FORCE_FMIP = RT_THIN_FMIP
 
static final int RT_BRUTE_FORCE_MINIP = RT_THIN_MINIP
 
static final int RT_BRUTE_FORCE_MIP = RT_THIN_MIP
 
static final int RT_MIP = RT_THICK_MIP
 
static final int RT_MPR_AXIAL = (1<<3)
 
static final int RT_MPR_CORONAL = (1<<5)
 
static final int RT_MPR_CURVED = (1<<13)
 
static final int RT_MPR_OBLIQUE = (1<<6)
 
static final int RT_MPR_SAGITTAL = (1<<4)
 
static final int RT_MPR_XY = (1<<0)
 
static final int RT_MPR_XZ = (1<<1)
 
static final int RT_MPR_YZ = (1<<2)
 
static final int RT_NONE = 0
 
static final int RT_PARALLEL = (1<<7)
 
static final int RT_PERSPECTIVE = (1<<8)
 
static final int RT_RESERVED16 = (1<<16)
 
static final int RT_THICK_FADED_MIP = (1<<10)
 
static final int RT_THICK_MINIP = (1<<20)
 
static final int RT_THICK_MINIP_PERSPECTIVE = (1<<22)
 
static final int RT_THICK_MIP = (1<<9)
 
static final int RT_THICK_MIP_PERSPECTIVE = (1<<21)
 
static final int RT_THIN_AVE = (1<<14)
 
static final int RT_THIN_FMIP = (1<<12)
 
static final int RT_THIN_MINIP = (1<<15)
 
static final int RT_THIN_MIP = (1<<11)
 
static final int RT_XRAY = RT_THICK_FADED_MIP
 
static final int S_FALSE = 1
 
static final int S_OK = 0
 
static final int SEG_GRAN_1X1X1 = 0
 
static final int SEG_GRAN_2X2X2 = 1
 
static final int SEGMENTATION_TYPE_ADDITIVE = 0
 
static final int SEGMENTATION_TYPE_SUBTRACTIVE = 1
 
static final int SK_CUSTOM = 4
 
static final int SK_MIN_MAX = 0
 
static final int SK_MIN_MAX_BONE = 3
 
static final int SK_MIN_MAX_GRADIENT = 1
 
static final int SK_MIN_MAX_GRADIENT_EXPAND = 2
 
static final int SMOOTH3D_NONE = 0
 
static final int SMOOTH3D_TRICUBIC = 2
 
static final int SMOOTH3D_TRILINEAR = 1
 
static final int SPT_LAPLACIAN = 1
 
static final int SPT_NONE = 0
 
static final int ST_ADDITIVE = 0
 
static final int ST_SUBTRACTIVE = 1
 
static final int STEREO_MODE_LEFT_EYE = 1
 
static final int STEREO_MODE_OFF = 0
 
static final int STEREO_MODE_RIGHT_EYE = 2
 
static final int THICK_TF_MIP_OPACITY = 500
 
static final int TO_NONE = 0
 
static final int TO_SHOW_COMMAND_ARGUMENTS = (1 << 2)
 
static final int TO_SHOW_COMMAND_DEBUG1 = (1 << 4)
 
static final int TO_SHOW_COMMAND_DEBUG2 = (1 << 5)
 
static final int TO_SHOW_COMMAND_DEBUG3 = (1 << 6)
 
static final int TO_SHOW_COMMAND_RESULTS = (1 << 3)
 
static final int TO_SHOW_COMMAND_TIME = (1 << 1)
 
static final int TO_SHOW_COMMANDS = (1 << 0)
 
static final double TRANSFER_FUNCTION_LOG_CORRECTION = 0.4
 
static final int UPDATE_MODE_CLEAR = 0
 
static final int UPDATE_MODE_CLEAR_BY_MASK = 10
 
static final int UPDATE_MODE_CLEAR_MULTI_TF = UPDATE_MODE_SET_TF_2+1
 
static final int UPDATE_MODE_CLEAR_NODES_ONLY = UPDATE_MODE_INVERT_MULTI_TF+1
 
static final int UPDATE_MODE_INVERT = UPDATE_MODE_NEGATIVE+1
 
static final int UPDATE_MODE_INVERT_MULTI_TF = UPDATE_MODE_CLEAR_MULTI_TF+1
 
static final int UPDATE_MODE_NEGATIVE = UPDATE_MODE_POSITIVE+1
 
static final int UPDATE_MODE_POSITIVE = UPDATE_MODE_CLEAR+1
 
static final int UPDATE_MODE_REBUILD = UPDATE_MODE_INVERT+1
 
static final int UPDATE_MODE_SET_TF_1 = UPDATE_MODE_REBUILD+1
 
static final int UPDATE_MODE_SET_TF_2 = UPDATE_MODE_SET_TF_1+1
 
static final int VCL_OPTIMIZE_DO_NOT_REMOVE = 0xFFFFFFFF
 
static final int VCL_TYPE_LINES = 1
 
static final int VCL_TYPE_TRIANGLES = 0
 
static final int VCLF_CUT_PLANES_AFFECT_POLYGONS =(1 << 0)
 
static final int VCLF_INVERT_MESH_GRADIENTS =(1 << 2)
 
static final int VCLF_NONE =(0 )
 
static final int VCLF_PER_CALL_LIST_INTERSECTION_LINE_PARAMS =(1 << 1)
 
static final int VLT_DIRECTIONAL = 0
 
static final int VLT_FRUSTRUM = 1
 
static final int VM_VEWMPR = 0
 
static final int VM_VIEW3D = 1
 

Detailed Description

This object represents a collection of triangles to be rendered using our integrated CPU based polygon rendering engine. You are able to assign several of these objects to a single rendering scene. This, combined with the m_transform parameter should allow you to maintain a complex scene graph of objects being separately manipulated in your world.

It should also be noted that you may (optionally) use an array of indices in this call list for higher storage efficiency. See the documentation for lockIndices() for more information.

Member Function Documentation

MESH_PROPS com.fovia.hdrc.hdrcVertexCallListContext.cleanMesh ( boolean  bDoClean)

Converts a mesh to a manifold representation for compatibility with a 3D printer. A manifold mesh has no holes, border edges, inverted triangles, or intersecting and interior polygons. Not all meshes can be cleaned in a single operation. Prior application of parameters in the Optimize function may be necessary to successfully clean a mesh.

Parameters
bDoCleanIf true the mesh will be cleaned, if false, the mesh will only be analyzed, with results returned in the MESH_PROPS structure.
Returns
A MESH_PROPS structure that contains the number of mesh flaws after the cleanup operation is run. All fields in the MESH_PROPS structure should be zero after a successful cleanup pass.

References com.fovia.hdrcsrv.hdrcDefines.S_OK.

int com.fovia.hdrc.hdrcVertexCallListContext.colorizeFromVolumeData ( hdrcRenderEngineContext  referenceEngine,
float  offset,
boolean  bVRColor 
)

Colorizes the vertex call list by baking the volumetric rendering result into the surface of the object.

Parameters
referenceEngineThe engine to use for reference display parameters to be baked into the surface
offsetThe offset from the vertex location to use for ray traversal.
bVRColorIf true the colorize function will use the volume rendering colorization algorithm. if false the algorithm will use the transfer function colorization algorithm.
int com.fovia.hdrc.hdrcVertexCallListContext.convertToIndexBuffer ( )

Converts a mesh to a manifold representation for compatibility with a 3D printer. A manifold mesh has no holes, border edges, inverted triangles, or intersecting and interior polygons. Not all meshes can be cleaned in a single operation. Prior application of parameters in the Optimize function may be necessary to successfully clean a mesh.

Parameters
pMeshPropsThe address of a MESH_PROPS structure that returns the number of mesh flaws after the cleanup operation is run. All fields in the MESH_PROPS structure should be zero after a successfull cleanup pass.
int com.fovia.hdrc.hdrcVertexCallListContext.getCullMode ( )

Gets the backface culling mode.

Returns
The current cull mode.
long com.fovia.hdrc.hdrcVertexCallListContext.getId ( )

Integer that represents the server side object that contains the octree.

Returns
int com.fovia.hdrc.hdrcVertexCallListContext.getNumIndices ( )

Returns how many indices are in the index buffer.

Returns
Number of indices.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

int com.fovia.hdrc.hdrcVertexCallListContext.getNumVertices ( )
boolean com.fovia.hdrc.hdrcVertexCallListContext.getTextureLighting ( )

Gets the texture lighting state for this call list.

Returns
The lighting state. If true texture lighting is on. If false texture lighting is off.
hdrcTextureMapContext com.fovia.hdrc.hdrcVertexCallListContext.getTextureMap ( )

Gets the hdrcTextureMapContext texture mapping object associated with this call list.

Returns
A hdrcTextureMapContext reference, or NULL if not set.
hdrcRenderEngineContext com.fovia.hdrc.hdrcVertexCallListContext.getTextureMapEngine ( )

Gets the hdrcRenderEngineContext texture mapping object associated with this call list.

Returns
A hdrcRenderEngineContext reference, or NULL if not set.
boolean com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ ( OBJFile  objFile)
boolean com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired ( OBJFile  objFile)
int com.fovia.hdrc.hdrcVertexCallListContext.invalidateClientState ( int  updateFlags)

Signals the client SDK that the local representation of mesh data is out of sync with the server side representation and needs to be updated. This can occur when certain server side operations change the mesh data, such as TF colorization.

Parameters
updateFlagsA set of ENUM_MESH_UPDATE bitflags to signal which client side mesh structures need updating. After setting a flag, the appropriate Get function will update the appropriate data. For example, calling InvalidateClientState(MESH_UPDATE_COLORS) will force the client SDK to update the client side vertex color data when GetColors() is next called.
boolean com.fovia.hdrc.hdrcVertexCallListContext.isEdited ( )

This function is used internally by hdrcRenderQueue for bookkeepping.

Returns
true if anything has been edited. false otherwise.
byte [] com.fovia.hdrc.hdrcVertexCallListContext.lockColors ( int  min,
int  max 
)

Locks the color buffer for editing. Every four bytes make up a color. Each value is red, green, blue, and alpha (opacity of this vertex). These colors correspond directly to vertices at the same index in their respective buffer.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.setUniformColor().

int [] com.fovia.hdrc.hdrcVertexCallListContext.lockIndices ( int  min,
int  max 
)

Locks the index buffer for editing. Every three ints makes up the vertex indices of a triangle. You can use a structure like this to reuse vertices more than once for triangles that neighbor each other.

For example, let's say you want to draw a rectangle by creating two triangles. Two of the vertices in that rectangle can be used by both triangles. By reusing the triangles, you can specify only four actual vertex locations instead of the six required for two triangles.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

float [] com.fovia.hdrc.hdrcVertexCallListContext.lockNormals ( int  min,
int  max 
)

Locks the normal buffer for editing. Every three floats makes up a normal. These correspond directly to vertices at the same index in their respective buffer.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ(), and com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

byte [] com.fovia.hdrc.hdrcVertexCallListContext.lockShadingEnabled ( int  min,
int  max 
)

Locks the shading buffer for editing. If the byte is 1, it means lighting is applied. If 0 no lighting is applied. These bytes correspond directly to vertices at the same index in their respective buffer.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.setUniformShadingEnabled().

float [] com.fovia.hdrc.hdrcVertexCallListContext.lockTextureCoords ( int  min,
int  max 
)

Locks the texture coordinate buffer for editing. Every two floats makes up a texture coordinate. These correspond directly to vertices at the same index in their respective buffer.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns
float [] com.fovia.hdrc.hdrcVertexCallListContext.lockVertices ( int  min,
int  max 
)

Locks the vertex buffer for editing. Every three floats makes up a vertex. If there is no index buffer, every three vertices makes up a new triangle.

Parameters
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
Returns

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ(), and com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

int com.fovia.hdrc.hdrcVertexCallListContext.optimize ( boolean  bCleanIslands,
double  islandPercentage,
boolean  bDecimate,
double  decimatePercentage,
boolean  bSmoothBefore,
boolean  bSmoothAfter,
double  smoothParam,
boolean  bFlip 
)

Performs various cleanup operations on a mesh. These are the available cleanup operations. Remove islands: removed disconneted sets of trianges, preserving only the largest sets. Decimate: reduces the number of polygons in a mesh. Smoothen: smooths a mesh by softening edges between polygons. Flip orientation: flips the orientation of polygons in the mesh by reversing the vertex winding order.

Parameters
bCleanIslandsBoolean value that determings if the connected set reduction operation is run.
islandPercentageA value between 0 and 100 that sets the connected set size threshold. For example, if a mesh has 100 polygons and islandPercentage is set to 10, then all sets containing 10 or fewer polygons are deleted.
bDecimateBoolean value that determings if the decimate operation is run.
decimatePercentageA value between 0 and 100 that determines the percentage of polygons that will be removed. For example, if set to 75, then 75 percent of the polygons will be removed.
bSmoothBeforeBoolean value that determines if the smoothing operation is run before the decimate operation.
bSmoothAfterBoolean value that determines if the smoothing operation is run after the decimate operation.
smoothParamA value between 0 and 1 that determines how aggressively the mesh is smoothed. Higher values equate to more smoothing.
bFlipBoolean value that determines if the polygon flip operation is applied.
long com.fovia.hdrc.hdrcVertexCallListContext.releaseSessionResources ( ) throws IOException

Call this if you wish to free up this object on the server before disconnecting.

Returns
long - 0 if successful.
Exceptions
IOException
int com.fovia.hdrc.hdrcVertexCallListContext.setCullMode ( int  cullMode)

Sets the backface culling mode.

Parameters
cullModeThe cull mode to use. Acceptable values are CULL_MODE_NONE, CULL_MODE_BACK, and CULL_MODE_BACK_INV.
void com.fovia.hdrc.hdrcVertexCallListContext.setNumIndices ( int  num)

Sets the number of indices which will be contained in the index buffer for this object.

Parameters
numNumber of indices. Set this to 0 if you do not intend to use an index buffer. In this case, every three vertices are a new triangle.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

void com.fovia.hdrc.hdrcVertexCallListContext.setNumVertices ( int  num)

Sets the number of vertices this call list should contain.

Parameters
numThe new number of vertices for this call list.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ(), and com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

int com.fovia.hdrc.hdrcVertexCallListContext.setRenderToTextureParameters ( RENDER_PARAMS  rp)

Sets the rendering parameters to be applied to the render to texture engine the next time the call list is updated on the server. Note that this is only relevant if setTextureMapEngine() was called on this call list.

Parameters
rpThe render parameters to be applied to the texture map engine
int com.fovia.hdrc.hdrcVertexCallListContext.setTextureLighting ( boolean  bTextureLighting)

Turns lighting on/off for texture mapped objects. Default is off. Generally, lighting should be on for mesh objects like implants and surgical guides. Lighting should be off for render-to-texture objects like VOI slices.

Parameters
bLightingIf true lighting is turned on. If false lighting is off.
int com.fovia.hdrc.hdrcVertexCallListContext.setTextureMap ( hdrcTextureMapContext  textureMap)

Sets the texture mapping source to the given hdrcTextureMapContext object

Parameters
textureMapThe texture map to use as the texture source.
int com.fovia.hdrc.hdrcVertexCallListContext.setTextureMapEngine ( hdrcRenderEngineContext  engineMap)

Sets the texture mapping source to the given hdrcRenderEngineContext object

Parameters
engineMapThe render engine to use as the texture source.
void com.fovia.hdrc.hdrcVertexCallListContext.setTransform ( MATRIX44D  mat)

Sets a 4x4 matrix for each of the vertices to be multiplied by before being displayed.

Parameters
matThe input transform matrix.
void com.fovia.hdrc.hdrcVertexCallListContext.setType ( int  type)

Sets the type of the vertex call list, this can be either lines or triangles.

Parameters
typeAcceptable types are either VCL_TYPE_LINES, or VCL_TYPE_TRIANGLES.
void com.fovia.hdrc.hdrcVertexCallListContext.setUniformColor ( int  r,
int  g,
int  b,
int  a 
)

Utility function for setting a uniform color for the buffer.

Parameters
rred
ggreen
bblue
aalpha (vertex opacity).

References com.fovia.hdrc.hdrcVertexCallListContext.getNumVertices(), com.fovia.hdrc.hdrcVertexCallListContext.lockColors(), and com.fovia.hdrc.hdrcVertexCallListContext.unlockColors().

void com.fovia.hdrc.hdrcVertexCallListContext.setUniformShadingEnabled ( boolean  bVal)

Utility function for setting shading enabled for the whole buffer.

Parameters
bVal1 if lighting should be applied. 0 if not.

References com.fovia.hdrc.hdrcVertexCallListContext.getNumVertices(), com.fovia.hdrc.hdrcVertexCallListContext.lockShadingEnabled(), and com.fovia.hdrc.hdrcVertexCallListContext.unlockShadingEnabled().

void com.fovia.hdrc.hdrcVertexCallListContext.unlockColors ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.setUniformColor().

void com.fovia.hdrc.hdrcVertexCallListContext.unlockIndices ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

void com.fovia.hdrc.hdrcVertexCallListContext.unlockNormals ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ(), and com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

void com.fovia.hdrc.hdrcVertexCallListContext.unlockShadingEnabled ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.setUniformShadingEnabled().

void com.fovia.hdrc.hdrcVertexCallListContext.unlockTextureCoords ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.
void com.fovia.hdrc.hdrcVertexCallListContext.unlockVertices ( boolean  bChangesMade,
int  min,
int  max 
)

Call this when you are done modifying the buffer.

Parameters
bChangesMadetrue if changes were made. false otherwise
minFirst index to be edited from the buffer
maxLast index plus 1 to be edited from the buffer. So if you intend to edit only index 0, you would set min to 0 and max to 1.

Referenced by com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJ(), and com.fovia.hdrc.hdrcVertexCallListContext.initFromOBJIndexBufferNormalsRequired().

Member Data Documentation

float com.fovia.hdrc.hdrcVertexCallListContext.m_lineWidth
protected

You must now use the getters and setters for this property. The change was unavoidable and we apologize for the inconvenience.

MATRIX44D com.fovia.hdrc.hdrcVertexCallListContext.m_transform
protected

You must now use the getters and setters for this property. The change was unavoidable and we apologize for the inconvenience.

int com.fovia.hdrc.hdrcVertexCallListContext.m_type
protected

You must now use the getters and setters for this property. The change was unavoidable and we apologize for the inconvenience.