ROI Volumes
ROIVolume is a class representing volumetric regions of interest within an OsiriX 3D display window. It provides control of the visibility and color of the object.
Type
All types only contain a single parameter, the UUID of the underlying OsiriX object.
Methods
By convention, any method defined with syntax
is called in Python (for example) using syntaxosirix.proto (lines 53-63)
rpc ROIVolumeTexture (ROIVolume) returns (ROIVolumeTextureResponse) {}
rpc ROIVolumeSetTexture (ROIVolumeSetTextureRequest) returns (Response) {}
rpc ROIVolumeVolume (ROIVolume) returns (ROIVolumeVolumeResponse) {}
rpc ROIVolumeColor(ROIVolume) returns (ROIVolumeColorResponse) {}
rpc ROIVolumeSetColor(ROIVolumeSetColorRequest) returns (Response) {}
rpc ROIVolumeOpacity(ROIVolume) returns (ROIVolumeOpacityResponse) {}
rpc ROIVolumeSetOpacity(ROIVolumeSetOpacityRequest) returns (Response) {}
rpc ROIVolumeFactor(ROIVolume) returns (ROIVolumeFactorResponse) {}
rpc ROIVolumeSetFactor(ROIVolumeSetFactorRequest) returns (Response) {}
rpc ROIVolumeName(ROIVolume) returns (ROIVolumeNameResponse) {}
rpc ROIVolumeVisible (ROIVolume) returns (ROIVolumeVisibleResponse) {}
Responses
By convention, any response defined with syntax
has attributes accessed in Python (for example) using syntax
roivolume.proto (lines 9-44)
message ROIVolumeTextureResponse{
Status status = 1;
bool texture = 2;
}
message ROIVolumeVolumeResponse{
Status status = 1;
float volume = 2;
}
message ROIVolumeColorResponse{
Status status = 1;
float r = 2;
float g = 3;
float b = 4;
}
message ROIVolumeOpacityResponse{
Status status = 1;
float opacity = 2;
}
message ROIVolumeFactorResponse{
Status status = 1;
float factor = 2;
}
message ROIVolumeVisibleResponse{
Status status = 1;
bool visible = 2;
}
message ROIVolumeNameResponse{
Status status = 1;
string name = 2;
}
Requests
By convention, any request defined with syntax
is created in Python (for example) using syntax
from osirixgrpc import roivolume_pb2
request = roivolume_pb2.ROIVolumeXyzRequest(arg1 = x1, arg2 = x2, ...)
roivolume.proto (lines 48-)
message ROIVolumeSetTextureRequest{
ROIVolume roi = 1;
bool texture = 2;
}
message ROIVolumeSetColorRequest{
ROIVolume roi = 1;
float r = 2;
float g = 3;
float b = 4;
}
message ROIVolumeSetOpacityRequest{
ROIVolume roi = 1;
float opacity = 2;
}
message ROIVolumeSetFactorRequest{
ROIVolume roi = 1;
float factor = 2;
}