public class SoToPDFAction extends SoToU3DAction
SoToU3DAction
. U3D files can be used to import 3D models inside PDF files by advanced PDF editors.
Limitations
SoToU3DAction
. Please read these carefully.
Use case
// setup the root scene graph to export SoSeparator root = new SoSeparator(); ... SoToPDFAction pdfAction = new SoToPDFAction(); boolean result = pdfAction.openFile( "output.pdf" ); if ( !result ) { // error management } pdfAction.setTitle( "Scene Name" ); pdfAction.setText( "Some text describing the exported scene." ); pdfAction.apply( root ); result = pdfAction.closeFile(); if ( !result ) { // error management }
Warning
SoToU3DAction
.
See also:
SoCallbackAction.Material, SoCallbackAction.Responses, SoCallbackAction.TextureImage
SoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndices
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoToPDFAction() |
Modifier and Type | Method and Description |
---|---|
static void |
enableElement(java.lang.Class<? extends Inventor> t,
int stkIndex) |
void |
setLandscape(boolean enable)
[Optional] Changes the page orientation from portrait to landscape.
|
void |
setPassword(java.lang.String writePass)
Calls setPassword(writePass, (java.lang.String)null).
|
void |
setPassword(java.lang.String writePass,
java.lang.String readPass)
[Optional] Set passwords to lock write & read access to the PDF file contents.
|
void |
setText(java.lang.String text)
[Optional] Add a text block into the output PDF file.
|
void |
setTitle(java.lang.String title)
[Optional] Set a title into the output PDF file.
|
areDraggersExported, closeFile, forcePolygonalText3, isPolygonalText3Forced, openFile, setExportDraggers
addLineSegmentCallback, addPointCallback, addPostCallback, addPostTailCallback, addPreCallback, addPreTailCallback, addTriangleCallback, getComplexity, getComplexityType, getCoordinate3, getCoordinate4, getCreaseAngle, getCurrentResponse, getDecimationPercentage, getDecimationType, getDrawStyle, getFaceType, getFocalDistance, getFontName, getFontRenderStyle, getFontSize, getLightAttenuation, getLightModel, getLinePattern, getLinePatternScaleFactor, getLineWidth, getMaterial, getMaterial, getMaterialBinding, getModelMatrix, getNormal, getNormalBinding, getNumCoordinates, getNumNormals, getNumProfileCoordinates, getNumTextureCoordinates, getPickStyle, getPointSize, getProfile, getProfileCoordinate2, getProfileCoordinate3, getProjectionMatrix, getShapeType, getSwitch, getTextureBlendColor, getTextureCoordinate2, getTextureCoordinate4, getTextureCoordinateBinding, getTextureFileName, getTextureImage, getTextureMatrix, getTextureModel, getTextureTransformNode, getTextureWrapS, getTextureWrapT, getTransparencyType, getUnits, getVertexOrdering, getViewingMatrix, getViewVolume, invokeLineSegmentCallbacks, invokePointCallbacks, invokePostCallbacks, invokePreCallbacks, invokeTriangleCallbacks, isCallbackAll, setCallbackAll, shouldGeneratePrimitives
apply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getDistribMode, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRep
dispose, getNativeResourceHandle
public void setPassword(java.lang.String writePass)
public void setText(java.lang.String text)
public void setTitle(java.lang.String title)
public void setLandscape(boolean enable)
public void setPassword(java.lang.String writePass, java.lang.String readPass)
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com