public class ThreeDFormat extends PVIObject implements IThreeDFormat, IThreeDParamSource
Represents 3-D properties.
Modifier and Type | Method and Description |
---|---|
IShapeBevel |
getBevelBottom()
Returns or sets the type of a bottom 3D bevel.
|
IShapeBevel |
getBevelTop()
Returns or sets the type of a top 3D bevel.
|
ICamera |
getCamera()
Returns or sets the settings of a camera.
|
IColorFormat |
getContourColor()
Returns or sets the color of a contour.
|
double |
getContourWidth()
Returns or sets the width of a 3D contour.
|
double |
getDepth()
Returns or sets the depth of a 3D shape.
|
IThreeDFormatEffectiveData |
getEffective()
Gets effective 3-D formatting data with the inheritance applied.
|
IColorFormat |
getExtrusionColor()
Returns or sets the color of an extrusion.
|
double |
getExtrusionHeight()
Returns or sets the height of an extrusion effect.
|
ILightRig |
getLightRig()
Returns or sets the type of a light.
|
int |
getMaterial()
Returns or sets the type of a material.
|
void |
setContourWidth(double value)
Returns or sets the width of a 3D contour.
|
void |
setDepth(double value)
Returns or sets the depth of a 3D shape.
|
void |
setExtrusionHeight(double value)
Returns or sets the height of an extrusion effect.
|
void |
setMaterial(int value)
Returns or sets the type of a material.
|
equals, getParent_Immediate, getParent_IPresentationComponent, getParent_ISlideComponent, getPresentation, getSlide, getVersion, hashCode, reset_Parent_IPresentationComponent
public final double getContourWidth()
Returns or sets the width of a 3D contour.
Read/write double
.
getContourWidth
in interface IThreeDFormat
public final void setContourWidth(double value)
Returns or sets the width of a 3D contour.
Read/write double
.
setContourWidth
in interface IThreeDFormat
public final double getExtrusionHeight()
Returns or sets the height of an extrusion effect.
Read/write double
.
getExtrusionHeight
in interface IThreeDFormat
public final void setExtrusionHeight(double value)
Returns or sets the height of an extrusion effect.
Read/write double
.
setExtrusionHeight
in interface IThreeDFormat
public final double getDepth()
Returns or sets the depth of a 3D shape.
Read/write double
.
getDepth
in interface IThreeDFormat
public final void setDepth(double value)
Returns or sets the depth of a 3D shape.
Read/write double
.
setDepth
in interface IThreeDFormat
public final IShapeBevel getBevelTop()
Returns or sets the type of a top 3D bevel.
Read-only IShapeBevel
.
getBevelTop
in interface IThreeDFormat
public final IShapeBevel getBevelBottom()
Returns or sets the type of a bottom 3D bevel.
Read-only IShapeBevel
.
getBevelBottom
in interface IThreeDFormat
public final IColorFormat getContourColor()
Returns or sets the color of a contour.
Read-only IColorFormat
.
getContourColor
in interface IThreeDFormat
public final IColorFormat getExtrusionColor()
Returns or sets the color of an extrusion.
Read-only IColorFormat
.
getExtrusionColor
in interface IThreeDFormat
public final ICamera getCamera()
Returns or sets the settings of a camera.
Read-only ICamera
.
getCamera
in interface IThreeDFormat
public final ILightRig getLightRig()
Returns or sets the type of a light.
Read-only ILightRig
.
getLightRig
in interface IThreeDFormat
public final int getMaterial()
Returns or sets the type of a material.
Read/write MaterialPresetType
.
getMaterial
in interface IThreeDFormat
public final void setMaterial(int value)
Returns or sets the type of a material.
Read/write MaterialPresetType
.
setMaterial
in interface IThreeDFormat
public final IThreeDFormatEffectiveData getEffective()
Gets effective 3-D formatting data with the inheritance applied.
This example demonstrates how to get effective properties for camera, light rig and shape's top bevel.Presentation pres = new Presentation("MyPresentation.pptx"); try { IThreeDFormatEffectiveData threeDEffectiveData = pres.getSlides().get_Item(0).getShapes().get_Item(0).getThreeDFormat().getEffective(); System.out.println("= Effective camera properties ="); System.out.println("Type: " + threeDEffectiveData.getCamera().getCameraType()); System.out.println("Field of view: " + threeDEffectiveData.getCamera().getFieldOfViewAngle()); System.out.println("Zoom: " + threeDEffectiveData.getCamera().getZoom()); System.out.println("= Effective light rig properties ="); System.out.println("Type: " + threeDEffectiveData.getLightRig().getLightType()); System.out.println("Direction: " + threeDEffectiveData.getLightRig().getDirection()); System.out.println("= Effective shape's top face relief properties ="); System.out.println("Type: " + threeDEffectiveData.getBevelTop().getBevelType()); System.out.println("Width: " + threeDEffectiveData.getBevelTop().getWidth()); System.out.println("Height: " + threeDEffectiveData.getBevelTop().getHeight()); } finally { if (pres != null) pres.dispose(); }
getEffective
in interface IThreeDFormat
IThreeDFormatEffectiveData
.