Package org.robwork.sdurw_graphics
Class CameraGroup
- java.lang.Object
-
- org.robwork.sdurw_graphics.CameraGroup
-
public class CameraGroup extends java.lang.Object
A group of cameras.
-
-
Constructor Summary
Constructors Constructor Description CameraGroup(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
SWIGTYPE_p_std__listT_rw__core__PtrT_rw__graphics__SceneCamera_t_t
getCameras()
Get all cameras in group.static long
getCPtr(CameraGroup obj)
SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t
getMainCamera()
Get the main camera.java.lang.String
getName()
Get name of group.void
insertCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam, int index)
Insert a camera in group.boolean
isEnabled()
Check if group is enabled.boolean
isOffscreenRenderEnabled()
Check if offscreen rendering is enabled.void
removeCamera(int index)
Remove camera.void
setCopyToImage(ImagePtr img)
Copy to image.void
setCopyToScan25D(PointCloudPtr img)
Copy to point cloud.void
setEnabled(boolean enabled)
Enable/disable group.void
setMainCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam)
Set the main camera.void
setMultiSample(int samples)
Enable multi-sampling.void
setOffscreenRenderColor(Image.ColorCode color)
Set color space for offscreen rendering.boolean
setOffscreenRenderEnabled(boolean enable)
Enable/disable offscreen rendering.void
setOffscreenRenderSize(int width, int height)
Set size for offscreen rendering.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(CameraGroup obj)
-
delete
public void delete()
-
getName
public java.lang.String getName()
Get name of group.- Returns:
- the name.
-
isEnabled
public boolean isEnabled()
Check if group is enabled.- Returns:
- true if enabled.
-
setEnabled
public void setEnabled(boolean enabled)
Enable/disable group.- Parameters:
enabled
- [in] true to enable, false to disable.
-
insertCamera
public void insertCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam, int index)
Insert a camera in group.- Parameters:
cam
- [in] camera.index
- [in] the index to insert at.
-
removeCamera
public void removeCamera(int index)
Remove camera.- Parameters:
index
- [in] the index of the camera to remove.
-
getCameras
public SWIGTYPE_p_std__listT_rw__core__PtrT_rw__graphics__SceneCamera_t_t getCameras()
Get all cameras in group.- Returns:
- list of cameras.
-
setMainCamera
public void setMainCamera(SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t cam)
Set the main camera.- Parameters:
cam
- [in] main camera.
-
getMainCamera
public SWIGTYPE_p_rw__core__PtrT_rw__graphics__SceneCamera_t getMainCamera()
Get the main camera.- Returns:
- the main camera.
-
setOffscreenRenderEnabled
public boolean setOffscreenRenderEnabled(boolean enable)
Enable/disable offscreen rendering.- Parameters:
enable
- [in] true to enable, false to disable.- Returns:
- true if offscreen rendering was enabled, false if offscreen rendering is not
possible.
-
isOffscreenRenderEnabled
public boolean isOffscreenRenderEnabled()
Check if offscreen rendering is enabled.- Returns:
- true if enabled, false otherwise.
-
setOffscreenRenderSize
public void setOffscreenRenderSize(int width, int height)
Set size for offscreen rendering.- Parameters:
width
- [in]height
- [in]
-
setOffscreenRenderColor
public void setOffscreenRenderColor(Image.ColorCode color)
Set color space for offscreen rendering.- Parameters:
color
- [in] the color space to use.
-
setCopyToImage
public void setCopyToImage(ImagePtr img)
Copy to image.- Parameters:
img
- [out] image to copy to.
-
setCopyToScan25D
public void setCopyToScan25D(PointCloudPtr img)
Copy to point cloud.- Parameters:
img
- [out] point cloud to copy to.
-
setMultiSample
public void setMultiSample(int samples)
Enable multi-sampling.- Parameters:
samples
- [in] number of samples.
-
-