Exported APIs for PDF Write Library. More...
Namespaces | |
| Layout | |
Data Structures | |
| struct | cross_section | 
| This structure provides several options to tune cross sections. It is a member of WriteOptions. More...  | |
| struct | LayoutOptions | 
| This structure provides several options to tune layout. It is a member of WriteOptions. More...  | |
| class | PdfDocumentProperties | 
| class | WriteOptions | 
| This class provides several options to tune Pdf Writer. It must be provided to Pdfw::InitWrite method. More...  | |
Enumerations | |
| enum | graphicinheritance { attributeoverwrite = 0x00, keepsubcolor = 0x01, keepsubtransparency = 0x02 } | 
| enum | Lighting {  NoLights = 0, LightsFromFile, WhiteLights, DayLights, BrightLights, PrimaryColorLights, NightLights, BlueLights, RedLights, CubeLights, CADOptimizedLights, HeadLamp, UnsetLighting = 255 }  | 
| enum | RenderMode {  Solid = 0, SolidWireframe = 1, Transparent = 2, TransparentWireframe = 3, BoundingBox = 4, TransparentBoundingBox = 5, TransparentBoundingBoxOutline = 6, Wireframe = 7, ShadedWireframe = 8, HiddenWireframe = 9, Vertices = 10, ShadedVertices = 11, Illustration = 12, SolidOutline = 13, ShadedIllustration = 14, Unset = 255 }  | 
| Model Render Mode in Acrobat.  More... | |
Functions | |
| Dtk_ErrorStatus | AddDocumentProperties (const Pdfw::PdfDocumentProperties &inDocProperties, const Dtk_tab< Dtk_MetaDataPtr > &inMetadatas) | 
| Writing Document Properties.  More... | |
| DtkErrorStatus | AddNodeMetadata (Dtk_tab< Dtk_MetaDataPtr > &inTabMetadata) | 
| Add table of metadata to current node.  More... | |
| DtkErrorStatus | AddNodeRenderInfo (Dtk_RenderInfosPtr inRenderInfos) | 
| Add rendering informations to current node.  More... | |
| DtkErrorStatus | CreateModelDisplayWithVisibleNodes (Dtk_ModelDisplayPtr &inModelDisplay, Dtk_tab< Dtk_ID > &inTabVisibleNodes, Pdfw::RenderMode inRenderMode=Pdfw::Unset, Pdfw::Lighting inLighting=Pdfw::UnsetLighting) | 
| Create a model display.  More... | |
| Dtk_ErrorStatus | CreateNodeConnectorHighlight (const Dtk_ID &inPointingNodeID, const Dtk_ID &inPointedNodeID, const Dtk_UInt32 &inFaceIndex=-1, Dtk_Int32 inReasonLink=0) | 
| Create a connexion between two nodes for visual response.  More... | |
| DtkErrorStatus | EndNode () | 
| End the node.  More... | |
| DtkErrorStatus | EndWrite () | 
| Creation of the output file and free the PDF Writer  More...  | |
| DtkErrorStatus | InitNode (Dtk_string &inNodeName, const Dtk_transfo &inTransfo, const Dtk_bool &inVisi, Dtk_ID &outID) | 
| Initialize a node.  More... | |
| DtkErrorStatus | InitNode (Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_ID &outID) | 
| Initialize a node.  More... | |
| DtkErrorStatus | InitNode (Dtk_string &inNodeName, const Dtk_transfo &inTransfo, Dtk_InfoPtr &inInfo, Dtk_UChar8 inHeritStrategy, Dtk_ID &outID) | 
| Initialize a node.  More... | |
| DtkErrorStatus | InitNode (Dtk_string &inNodeName, const Dtk_transfo &inTransfo=Dtk_transfo()) | 
| Initialize a node.  More... | |
| DtkErrorStatus | InitWrite (const Dtk_string &inOutputFile, const Dtk_string &inLogFile, Licence_dtk inLicFct, WriteOptions &inOptions) | 
| Initialize the PDF Writer  More...  | |
| Dtk_bool | IsWriteInitialized () | 
| Test if PDF Writer is initialized.  More... | |
| DtkErrorStatus | ReinstanciatePrototype (Dtk_ID inID) | 
| Reinstanciate children of node to reinstanciate in current node.  More... | |
| SetAsDeprecated ("Undefined", "") Dtk_ErrorStatus WriteColoredPoints(Dtk_tab< Dtk_PointPtr > &inTabPoints | |
| SetAsDeprecated ("Undefined", "CreateModelDisplayWithVisibleNodes()") DtkErrorStatus CreateModelDisplay(Dtk_string &inName | |
| SetAsDeprecated ("Undefined", "Use CreateNodeConnectorHighlight()") Dtk_ErrorStatus CreateConnectorFdtFace(const Dtk_ID &inFdtID | |
| void | StorePrototype (Dtk_ID inID) | 
| Stores the identifier of a node.  More... | |
| DtkErrorStatus | WriteBodyAndMesh (const Dtk_BodyPtr &inBody, const Dtk_MeshPtr &inMesh, Dtk_ID &outID) | 
| Write the entities provided in parameter in a node.  More... | |
| Dtk_ErrorStatus | WriteColoredPoints (Dtk_tab< Dtk_pnt > &inTabPoints, Dtk_tab< Dtk_dir > &inTabNormals, Dtk_tab< Dtk_RGB > &inTabColors, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr()) | 
| Write colored points provided in parameter in one node.  More... | |
| Dtk_ErrorStatus | WriteEntity (const Dtk_EntityPtr &inEntity) | 
| Write the entity provided in parameter in a node.  More... | |
| Dtk_ErrorStatus | WriteEntity (const Dtk_EntityPtr &inEntity, Dtk_ID &outID) | 
| Write the entity provided in parameter in a node.  More... | |
| Dtk_ErrorStatus | WriteParallelToScreenPicture (const Dtk_string &inPictureFilePath, Dtk_Double64 inPictureWidth, Dtk_Double64 inPictureHeight, Dtk_anchor_type inAnchorType, bool inIsZoomable, bool inIsOnTop, Dtk_transfo inTransfo, Dtk_LeaderPtr &inLeader) | 
| Creates a parallel to screen picture with an attached leader line.  More... | |
| Dtk_ErrorStatus | WritePictureWithLeaderLine (const Dtk_string &inPictureFilePath, Dtk_Double64 inPictureWidth, Dtk_Double64 inPictureHeight, Dtk_anchor_type inAnchorType, Dtk_Fdt::ScreenDisplayEnum inScreenDisplayAttrib, bool inIsZoomable, bool inIsOnTop, Dtk_pnt inPictureOrigin, Dtk_transfo inTransfo, Dtk_LeaderPtr &inLeader) | 
| Deprecated function => Use WriteParallelToScreenPicture() or WritePinToScreenPicture()  More... | |
| Dtk_ErrorStatus | WritePinToScreenPicture (const Dtk_string &inPictureFilePath, Dtk_Double64 inPictureWidth, Dtk_Double64 inPictureHeight, Dtk_pnt inPictureOrigin, Dtk_anchor_type inAnchorType, bool inIsOnTop, Dtk_LeaderPtr &inLeader) | 
| Creates a picture parallel to screen with an attached leader line.  More... | |
| Dtk_ErrorStatus | WritePoints (Dtk_tab< Dtk_PointPtr > &inTabPoints, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr()) | 
| Write points provided in parameter in one node.  More... | |
| Dtk_ErrorStatus | WritePolylines (Dtk_tab< Dtk_PolylinePtr > &inTabPolylines, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr()) | 
| Write polylines provided in parameter in one node.  More... | |
Variables | |
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > Dtk_RGB | inBackgroundColor = Dtk_RGB() ) | 
| Dtk_CameraPtr | inCamera | 
| Dtk_CameraPtr Dtk_EntityPtr | inClippingEntity | 
| const Dtk_tab< Dtk_ID > const Dtk_Size_t & | inFaceIndex | 
| Dtk_tab< Dtk_dir > Dtk_ID Dtk_InfoPtr | inInfo = Dtk_InfoPtr() ) | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > Dtk_RGB Dtk_bool | inManageHideShowBody | 
| const Dtk_tab< Dtk_ID > & | inNodePathIDs | 
| Dtk_tab< Dtk_dir > & | inTabNormals | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > | inTabTransfo = Dtk_tab<Dtk_transfo>() | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > & | inTabVisibleNodes | 
| Dtk_tab< Dtk_dir > Dtk_ID & | outID | 
Exported APIs for PDF Write Library.
| Enumerator | |
|---|---|
| attributeoverwrite | |
| keepsubcolor | |
| keepsubtransparency | |
| enum Pdfw::Lighting | 
| enum Pdfw::RenderMode | 
| Dtk_ErrorStatus Pdfw::AddDocumentProperties | ( | const Pdfw::PdfDocumentProperties & | inDocProperties, | 
| const Dtk_tab< Dtk_MetaDataPtr > & | inMetadatas | ||
| ) | 
Writing Document Properties.
| [in] | inDocProperties | : Document Properties > Description | 
| [in] | inMetadatas | : Document Properties > Custom Properties | 
| DtkErrorStatus Pdfw::AddNodeMetadata | ( | Dtk_tab< Dtk_MetaDataPtr > & | inTabMetadata | ) | 
| DtkErrorStatus Pdfw::AddNodeRenderInfo | ( | Dtk_RenderInfosPtr | inRenderInfos | ) | 
Add rendering informations to current node.
| [in] | inRenderInfos | : A Dtk_RenderInfosPtr | 
| DtkErrorStatus Pdfw::CreateModelDisplayWithVisibleNodes | ( | Dtk_ModelDisplayPtr & | inModelDisplay, | 
| Dtk_tab< Dtk_ID > & | inTabVisibleNodes, | ||
| Pdfw::RenderMode | inRenderMode = Pdfw::Unset,  | 
        ||
| Pdfw::Lighting | inLighting = Pdfw::UnsetLighting  | 
        ||
| ) | 
Create a model display.
| [in] | inModelDisplay | : The model display to write | 
| [in] | inTabVisibleNodes | : Table of referenced nodes (an empty table will mean that the view will reference all visible nodes) | 
| [in] | inRenderMode | : Model display pdf render mode | 
| [in] | inLighting | : Model display pdf extra lighting | 
| Dtk_ErrorStatus Pdfw::CreateNodeConnectorHighlight | ( | const Dtk_ID & | inPointingNodeID, | 
| const Dtk_ID & | inPointedNodeID, | ||
| const Dtk_UInt32 & | inFaceIndex = -1,  | 
        ||
| Dtk_Int32 | inReasonLink = 0  | 
        ||
| ) | 
Create a connexion between two nodes for visual response.
| [in] | inPointingNodeID | : The pdf identifier of the pointing node | 
| [in] | inPointedNodeID | : The pdf identifier of the pointed node to be highlighted | 
| [in] | inFaceIndex | : the index of the face in the mesh or body (optionnal) | 
| [in] | inReasonLink | : Internal use only | 
| DtkErrorStatus Pdfw::EndNode | ( | ) | 
End the node.
| DtkErrorStatus Pdfw::EndWrite | ( | ) | 
Creation of the output file and free the PDF Writer 
 
| DtkErrorStatus Pdfw::InitNode | ( | Dtk_string & | inNodeName, | 
| const Dtk_transfo & | inTransfo, | ||
| const Dtk_bool & | inVisi, | ||
| Dtk_ID & | outID | ||
| ) | 
Initialize a node.
| [in] | inNodeName | : The name of the node | 
| [in] | inTransfo | : The matrix of the node | 
| [in] | inVisi | : The visibility of the node (1 : visible, 0 : invisible) | 
| [out] | outID | : The identifier of the node | 
| DtkErrorStatus Pdfw::InitNode | ( | Dtk_string & | inNodeName, | 
| const Dtk_transfo & | inTransfo, | ||
| Dtk_InfoPtr & | inInfo, | ||
| Dtk_ID & | outID | ||
| ) | 
Initialize a node.
| [in] | inNodeName | : The name of the node | 
| [in] | inTransfo | : The matrix of the node | 
| [in] | inInfo | : The infos (attributes) of the node | 
| [out] | outID | : The identifier of the node | 
| DtkErrorStatus Pdfw::InitNode | ( | Dtk_string & | inNodeName, | 
| const Dtk_transfo & | inTransfo, | ||
| Dtk_InfoPtr & | inInfo, | ||
| Dtk_UChar8 | inHeritStrategy, | ||
| Dtk_ID & | outID | ||
| ) | 
Initialize a node.
| [in] | inNodeName | : The name of the node | 
| [in] | inTransfo | : The matrix of the node | 
| [in] | inInfo | : The infos (attributes) of the node | 
| [in] | inHeritStrategy | : strategy for graphic attributes (Dtk_RGB / Dtk_RenderInfos) inheritance multiple values can be set (bit vector). E.g. : Pdfw::keepsubcolor | Pdfw::keepsubtransparency | 
| [out] | outID | : The identifier of the node | 
| DtkErrorStatus Pdfw::InitNode | ( | Dtk_string & | inNodeName, | 
| const Dtk_transfo & | inTransfo = Dtk_transfo()  | 
        ||
| ) | 
Initialize a node.
| [in] | inNodeName | : The name of the node | 
| [in] | inTransfo | : The matrix of the node | 
| DtkErrorStatus Pdfw::InitWrite | ( | const Dtk_string & | inOutputFile, | 
| const Dtk_string & | inLogFile, | ||
| Licence_dtk | inLicFct, | ||
| WriteOptions & | inOptions | ||
| ) | 
Initialize the PDF Writer 
 
| [in] | inOutputFile | : Output file name | 
| [in] | inLogFile | : Log file | 
| [in] | inLicFct | : License function or Null | 
| [in] | inOptions | : Options | 
| Dtk_bool Pdfw::IsWriteInitialized | ( | ) | 
Test if PDF Writer is initialized.
| DtkErrorStatus Pdfw::ReinstanciatePrototype | ( | Dtk_ID | inID | ) | 
Reinstanciate children of node to reinstanciate in current node.
| [in] | inID | : A unique identifier of the node to be reinstanciated | 
| Pdfw::SetAsDeprecated | ( | "Undefined" | , | 
| "" | |||
| ) | & | 
| Pdfw::SetAsDeprecated | ( | "Undefined" | , | 
| "CreateModelDisplayWithVisibleNodes()" | |||
| ) | & | 
| Pdfw::SetAsDeprecated | ( | "Undefined" | , | 
| "Use CreateNodeConnectorHighlight()" | |||
| ) | const & | 
| void Pdfw::StorePrototype | ( | Dtk_ID | inID | ) | 
Stores the identifier of a node.
| [in] | inID | : A unique identifier of the node | 
| DtkErrorStatus Pdfw::WriteBodyAndMesh | ( | const Dtk_BodyPtr & | inBody, | 
| const Dtk_MeshPtr & | inMesh, | ||
| Dtk_ID & | outID | ||
| ) | 
Write the entities provided in parameter in a node.
| [in] | inBody | : The Body to be written | 
| [in] | inMesh | : The corresponding mesh to be written | 
| [out] | outID | : The ID of the written entity | 
| Dtk_ErrorStatus Pdfw::WriteColoredPoints | ( | Dtk_tab< Dtk_pnt > & | inTabPoints, | 
| Dtk_tab< Dtk_dir > & | inTabNormals, | ||
| Dtk_tab< Dtk_RGB > & | inTabColors, | ||
| Dtk_ID & | outID, | ||
| Dtk_InfoPtr | inInfo = Dtk_InfoPtr()  | 
        ||
| ) | 
Write colored points provided in parameter in one node.
| [in] | inTabPoints | : The points to be written with their color ( point->info()->SetColor( Dtk_RGB() ); ) | 
| [in] | inTabNormals | : The normals to be written (Optional) | 
| [in] | inTabColors | : The colors to be written (Optional) | 
| [out] | outID | : The ID of the written entities | 
| [in] | inInfos | : The infos of the written entities | 
| Dtk_ErrorStatus Pdfw::WriteEntity | ( | const Dtk_EntityPtr & | inEntity | ) | 
Write the entity provided in parameter in a node.
| [in] | inEntity | : The Entity to be written | 
| Dtk_ErrorStatus Pdfw::WriteEntity | ( | const Dtk_EntityPtr & | inEntity, | 
| Dtk_ID & | outID | ||
| ) | 
Write the entity provided in parameter in a node.
| [in] | inEntity | : The Entity to be written | 
| [out] | outID | : The ID of the written entity | 
| Dtk_ErrorStatus Pdfw::WriteParallelToScreenPicture | ( | const Dtk_string & | inPictureFilePath, | 
| Dtk_Double64 | inPictureWidth, | ||
| Dtk_Double64 | inPictureHeight, | ||
| Dtk_anchor_type | inAnchorType, | ||
| bool | inIsZoomable, | ||
| bool | inIsOnTop, | ||
| Dtk_transfo | inTransfo, | ||
| Dtk_LeaderPtr & | inLeader | ||
| ) | 
Creates a parallel to screen picture with an attached leader line.
| [in] | inPictureFilePath | : Picture file path | 
| [in] | inPictureWidth | : Picture width (mm) | 
| [in] | inPictureHeight | : Picture height (mm) | 
| [in] | inAnchorType | : Picture / Leader end anchor point | 
| [in] | inIsZoomable | : Is zoomable attribute | 
| [in] | inIsOnTop | : Is on top attribute | 
| [in] | inTransfo | : 3d transfo | 
| [in] | inLeader | : 2d leader | 
| Dtk_ErrorStatus Pdfw::WritePictureWithLeaderLine | ( | const Dtk_string & | inPictureFilePath, | 
| Dtk_Double64 | inPictureWidth, | ||
| Dtk_Double64 | inPictureHeight, | ||
| Dtk_anchor_type | inAnchorType, | ||
| Dtk_Fdt::ScreenDisplayEnum | inScreenDisplayAttrib, | ||
| bool | inIsZoomable, | ||
| bool | inIsOnTop, | ||
| Dtk_pnt | inPictureOrigin, | ||
| Dtk_transfo | inTransfo, | ||
| Dtk_LeaderPtr & | inLeader | ||
| ) | 
Deprecated function => Use WriteParallelToScreenPicture() or WritePinToScreenPicture()
Create a picture parallel or pin to screen with an attached leader line
| [in] | inPictureFilePath | : Picture file path | 
| [in] | inPictureWidth | : Picture width (mm) | 
| [in] | inPictureHeight | : Picture height (mm) | 
| [in] | inAnchorType | : Picture / Leader anchor point (future use) | 
| [in] | inScreenDisplayAttrib | : Screen display attribute (ParallelToScreen or PinToScreen) | 
| [in] | inIsZoomable | : Is zoomable attribute | 
| [in] | inIsOnTop | : Is on top attribute | 
| [in] | inPictureOrigin | : 2d picture origin | 
| [in] | inTransfo | : 3d picture transfo | 
| [in] | inTabEntities | : Additional geometries | 
| Dtk_ErrorStatus Pdfw::WritePinToScreenPicture | ( | const Dtk_string & | inPictureFilePath, | 
| Dtk_Double64 | inPictureWidth, | ||
| Dtk_Double64 | inPictureHeight, | ||
| Dtk_pnt | inPictureOrigin, | ||
| Dtk_anchor_type | inAnchorType, | ||
| bool | inIsOnTop, | ||
| Dtk_LeaderPtr & | inLeader | ||
| ) | 
Creates a picture parallel to screen with an attached leader line.
| [in] | inPictureFilePath | : Picture file path | 
| [in] | inPictureWidth | : Picture width (mm) | 
| [in] | inPictureHeight | : Picture height (mm) | 
| [in] | inPictureOrigin | : 2d picture origin (offset point from 3d annotation bottom left corner in mm) | 
| [in] | inAnchorType | : Picture / Leader anchor point | 
| [in] | inIsOnTop | : Is on top attribute | 
| [in] | inLeader | : Leader | 
| Dtk_ErrorStatus Pdfw::WritePoints | ( | Dtk_tab< Dtk_PointPtr > & | inTabPoints, | 
| Dtk_ID & | outID, | ||
| Dtk_InfoPtr | inInfo = Dtk_InfoPtr()  | 
        ||
| ) | 
Write points provided in parameter in one node.
| [in] | inTabPoints | : The points to be written | 
| [out] | outID | : The ID of the written entities | 
| [in] | inInfos | : The infos of the written entities | 
| Dtk_ErrorStatus Pdfw::WritePolylines | ( | Dtk_tab< Dtk_PolylinePtr > & | inTabPolylines, | 
| Dtk_ID & | outID, | ||
| Dtk_InfoPtr | inInfo = Dtk_InfoPtr()  | 
        ||
| ) | 
Write polylines provided in parameter in one node.
| [in] | inEntity | : The polylines to be written | 
| [out] | outID | : The ID of the written entity | 
| [in] | inInfos | : The infos of the written entities | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > Dtk_RGB Pdfw::inBackgroundColor = Dtk_RGB() ) | 
| Dtk_CameraPtr Pdfw::inCamera | 
| Dtk_CameraPtr Dtk_EntityPtr Pdfw::inClippingEntity | 
| const Dtk_tab<Dtk_ID> const Dtk_Size_t& Pdfw::inFaceIndex | 
| Dtk_tab< Dtk_dir > Dtk_ID Dtk_InfoPtr Pdfw::inInfo = Dtk_InfoPtr() ) | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab<Dtk_ID> Dtk_tab<Dtk_transfo> Dtk_RGB Dtk_bool Pdfw::inManageHideShowBody | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > & Pdfw::inTabTransfo = Dtk_tab<Dtk_transfo>() | 
| Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > & Pdfw::inTabVisibleNodes |