DATAKIT API  V2025.1
pdfw.hpp
Go to the documentation of this file.
1 #ifndef _PDF_WRITER_HPP
2 #define _PDF_WRITER_HPP
3 
4 #include "util/util_ent_dtk.hpp"
5 #include "util/util_mesh_dtk.hpp"
6 #include "util/util_draw_dtk.hpp"
7 
9 namespace Pdfw
10 {
11  // Graphic Attributes inheritance
13  {
14  attributeoverwrite = 0x00, // node color and transparency will overload all objects( default ),
15  keepsubcolor = 0x01, // node color will overload only uncolored objects,
16  keepsubtransparency = 0x02 // node transparency will affect only objects with no transparency defined
17  };
22  {
29  };
30 
35  {
61 
62  };
63 
65  typedef enum RenderMode
66  {
67  Solid = 0,
74  Wireframe = 7,
77  Vertices = 10,
82  Unset = 255
84 
85  typedef enum Lighting
86  {
87  NoLights = 0,
99  UnsetLighting = 255
101 
113  {
114  protected:
115 
116  public:
117 
120  {
123  CrossSection.IntersectionColor = Dtk_RGB( 255, 0, 0 ); CrossSection.CuttingPlaneColor = Dtk_RGB( 255, 255, 255 );
126  PrcTessAngle = 40.0; PrcTessChordHeight = 2000.0; PrcActivateCompTess = DTK_FALSE; PrcCompTessTol = 0.001; Layout.CreateAutomaticLayout = DTK_TRUE; Layout.RasterizeTexts = DTK_TRUE; Layout.WriteLineThickness = DTK_FALSE;
127  Layout.TTF_BoldFont = Dtk_string(); Layout.TTF_BoldItalicFont = Dtk_string(); Layout.TTF_Font = Dtk_string();
128  Layout.TTF_ItalicFont = Dtk_string(); Layout._3DAnnotActivation = 0, Layout._3DAnnotSize[ 0 ] = 1E50, Layout._3DAnnotSize[ 1 ] = 1E50, Layout._3DAnnotSize[ 2 ] = -1E50,
129  Layout._3DAnnotSize[ 3 ] = -1E50; RasterizeSymbols = DTK_FALSE; SplitLeaders = DTK_FALSE;
130  }
135  {
136  }
137 
178  Dtk_Double64 PrcTessAngle; // the minimal angle, in degrees, for triangles in the tessellation.
179  Dtk_Double64 PrcTessChordHeight; // the minimal chord height, in millimeters, for deviation between triangles and the exact surface in the tessellation.
180 
186 
191 
192  //Layout options
194  };
195 
197  {
198  private:
199  Dtk_string Title;
200  Dtk_string Author;
201  Dtk_string Subject;
202  Dtk_string Keywords;
203  Dtk_string Application;
204  Dtk_string PDFProducer;
205  public:
210  void SetTitle( const Dtk_string & inString );
213  void SetAuthor( const Dtk_string & inString );
216  void SetSubject( const Dtk_string & inString );
219  void SetKeywords( const Dtk_string & inString );
222  void SetApplication( const Dtk_string & inString );
225  void SetPDFProducer( const Dtk_string & inString );
226 
227  const Dtk_string &GetTitle() const;
228  const Dtk_string &GetAuthor() const;
229  const Dtk_string &GetSubject() const;
230  const Dtk_string &GetKeywords() const;
231  const Dtk_string &GetApplication() const;
232  const Dtk_string &GetPDFProducer() const;
233 
234  };
235 
243  DtkErrorStatus InitWrite( const Dtk_string& inOutputFile, const Dtk_string& inLogFile, Licence_dtk inLicFct, WriteOptions& inOptions );
244 
249 
257  const Dtk_tab<Dtk_MetaDataPtr> &inMetadatas);
258 
262 
270 
279 
288 
296 
305 
317  Dtk_tab < Dtk_RGB >&inTabColors,
318  Dtk_ID &outID,
320 
328 
337  DtkErrorStatus InitNode( Dtk_string& inNodeName, const Dtk_transfo& inTransfo, const Dtk_bool &inVisi, Dtk_ID &outID );
338 
351 
352 
363 
367 
370  void StorePrototype( Dtk_ID inID );
371 
376 
382 
388 
397  Pdfw::RenderMode inRenderMode = Pdfw::Unset,
398  Pdfw::Lighting inLighting = Pdfw::UnsetLighting );
399 
400 
407  const Dtk_ID &inPointedNodeID,
408  const Dtk_UInt32 &inFaceIndex = -1,
409  Dtk_Int32 inReasonLink = 0 );
410 
424  Dtk_Double64 inPictureWidth,
425  Dtk_Double64 inPictureHeight,
426  Dtk_anchor_type inAnchorType,
427  bool inIsZoomable,
428  bool inIsOnTop,
430  Dtk_LeaderPtr &inLeader );
431 
445  Dtk_Double64 inPictureWidth,
446  Dtk_Double64 inPictureHeight,
447  Dtk_pnt inPictureOrigin,
448  Dtk_anchor_type inAnchorType,
449  bool inIsOnTop,
450  Dtk_LeaderPtr &inLeader );
451 
454  namespace Layout
455  {
456  typedef enum _PageSizes
457  {
470  SIZE_EOF
472 
473 
474  typedef enum _PageDirection
475  {
476  PORTRAIT = 0,
477  LANDSCAPE
479 
481 
488  Dtk_ErrorStatus InitPage( Dtk_RGB inColor = Dtk_RGB( 255, 255, 255 ), Dtk_Double64 inWidth = 842, Dtk_Double64 inHeight = 595 );
489 
494 
500 
508  DtkErrorStatus Init3DArtwork( Dtk_string inAnnotName = Dtk_string(), Pdfw::WriteOptions *inWriteOptions = NULL );
509 
515 
522 
557  Dtk_Double64 inBBox[ 4 ],
558  Dtk_Int32 inModelDisplayIndex = -1,
559  Dtk_Int32 inLayerID = -1,
560  RenderMode inRenderMode = Unset,
561  Lighting inLighting = UnsetLighting,
562  Dtk_bool inAnnotActivation = 0 );
563 
570 
577 
582 
587 
593 
599 
607  Dtk_ErrorStatus WritePicture( Dtk_string inPicturePath, Dtk_Double64 inPictureBBox[ 4 ] );
608 
615 
616  }
617 
618  //DEPRECATED
635  Dtk_Double64 inPictureWidth,
636  Dtk_Double64 inPictureHeight,
637  Dtk_anchor_type inAnchorType,
638  Dtk_Fdt::ScreenDisplayEnum inScreenDisplayAttrib,
639  bool inIsZoomable,
640  bool inIsOnTop,
641  Dtk_pnt inPictureOrigin,
643  Dtk_LeaderPtr &inLeader );
644 
646  SetAsDeprecated("Undefined", "Use CreateNodeConnectorHighlight()")
647  Dtk_ErrorStatus CreateConnectorFdtFace( const Dtk_ID &inFdtID,
650 
659 
669 
670 
671  // ! \deprecated => Use other WriteColoredPoints()
672  SetAsDeprecated("Undefined", "")
677 
678 
679 }
680 
681 
682 #endif
Pdfw::BlueLights
@ BlueLights
Definition: pdfw.hpp:94
Pdfw::Transparent
@ Transparent
Definition: pdfw.hpp:69
Pdfw::PdfDocumentProperties::GetSubject
const Dtk_string & GetSubject() const
Pdfw::CreateModelDisplayWithVisibleNodes
DtkErrorStatus CreateModelDisplayWithVisibleNodes(Dtk_ModelDisplayPtr &inModelDisplay, Dtk_tab< Dtk_ID > &inTabVisibleNodes, Pdfw::RenderMode inRenderMode=Pdfw::Unset, Pdfw::Lighting inLighting=Pdfw::UnsetLighting)
Create a model display.
Dtk_InfoPtr
Dtk_SmartPtr< Dtk_Info > Dtk_InfoPtr
Handles a Dtk_Info object.
Definition: util_ptr_dtk.hpp:310
Pdfw::Wireframe
@ Wireframe
Definition: pdfw.hpp:74
Pdfw::LayoutOptions::DrawingMarginsSize
Dtk_Double64 DrawingMarginsSize
Additional page margins size. 10.0mm by default.
Definition: pdfw.hpp:60
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:689
Pdfw::Layout::Get3DArtworkBBox
DtkErrorStatus Get3DArtworkBBox(Dtk_pnt &outPmin, Dtk_pnt &outPmax)
Gets oriented XYZ bounding box corners.
Dtk_transfo
This is the Transformation dedicated class.
Definition: dtk_transfo.hpp:19
Pdfw::AddNodeMetadata
DtkErrorStatus AddNodeMetadata(Dtk_tab< Dtk_MetaDataPtr > &inTabMetadata)
Add table of metadata to current node.
Pdfw::Layout::CreateOutline
Dtk_ErrorStatus CreateOutline(Dtk_string inName)
Creation of outline.
Pdfw::inCamera
Dtk_CameraPtr inCamera
Definition: pdfw.hpp:654
Pdfw::Layout::Create3DAnnotation
DtkErrorStatus Create3DAnnotation(Dtk_UInt32 inArtworkIndex, Dtk_Double64 inBBox[4], Dtk_Int32 inModelDisplayIndex=-1, Dtk_Int32 inLayerID=-1, RenderMode inRenderMode=Unset, Lighting inLighting=UnsetLighting, Dtk_bool inAnnotActivation=0)
Creates 3D Annotation from 3D artwork in current page with its 2d bounding box.
Pdfw::Layout::SIZE_US4x8
@ SIZE_US4x8
Definition: pdfw.hpp:467
Pdfw::Layout::SIZE_B5
@ SIZE_B5
Definition: pdfw.hpp:464
Pdfw::TransparentWireframe
@ TransparentWireframe
Definition: pdfw.hpp:70
Pdfw::cross_section
This structure provides several options to tune cross sections. It is a member of WriteOptions.
Definition: pdfw.hpp:22
Pdfw::BrightLights
@ BrightLights
Definition: pdfw.hpp:91
Pdfw::WriteOptions
This class provides several options to tune Pdf Writer. It must be provided to Pdfw::InitWrite method...
Definition: pdfw.hpp:113
Pdfw::WriteOptions::operator=
WriteOptions & operator=(const WriteOptions &s)
\Operator =
Pdfw::InitWrite
DtkErrorStatus InitWrite(const Dtk_string &inOutputFile, const Dtk_string &inLogFile, Licence_dtk inLicFct, WriteOptions &inOptions)
Initialize the PDF Writer
Pdfw::PdfDocumentProperties::PdfDocumentProperties
PdfDocumentProperties()
Pdfw::WritePoints
Dtk_ErrorStatus WritePoints(Dtk_tab< Dtk_PointPtr > &inTabPoints, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr())
Write points provided in parameter in one node.
Pdfw::PdfDocumentProperties::~PdfDocumentProperties
~PdfDocumentProperties()
Pdfw::Layout::SIZE_A3
@ SIZE_A3
Definition: pdfw.hpp:460
Pdfw::SetAsDeprecated
SetAsDeprecated("Undefined", "Use CreateNodeConnectorHighlight()") Dtk_ErrorStatus CreateConnectorFdtFace(const Dtk_ID &inFdtID
Pdfw::WriteOptions::PointSize
Dtk_Double64 PointSize
Size of points.
Definition: pdfw.hpp:163
Pdfw::WriteOptions::Layout
LayoutOptions Layout
Definition: pdfw.hpp:193
Pdfw::Solid
@ Solid
Definition: pdfw.hpp:67
Pdfw::UnsetLighting
@ UnsetLighting
Definition: pdfw.hpp:99
Pdfw::Layout::EndPage
Dtk_ErrorStatus EndPage()
End of page.
Pdfw::WriteOptions::PrcCompTessTol
Dtk_Double64 PrcCompTessTol
(Future Use) 3D point tolerance
Definition: pdfw.hpp:185
catiav5w::inTransfo
const Dtk_string const Dtk_transfo & inTransfo
Definition: catiav5w.hpp:619
Pdfw::LayoutOptions::CreateAutomaticLayout
Dtk_bool CreateAutomaticLayout
DTK_TRUE : Creates automatic layout (One page with filled with 3D Annotation), DTK_FALSE : You must u...
Definition: pdfw.hpp:37
Pdfw::PdfDocumentProperties::GetAuthor
const Dtk_string & GetAuthor() const
DTK_TRUE
#define DTK_TRUE
Definition: define.h:727
Pdfw::PdfDocumentProperties::SetKeywords
void SetKeywords(const Dtk_string &inString)
Add Keywords in Document Catalog Metadata.
Pdfw::LayoutOptions::TTF_ItalicFont
Dtk_string TTF_ItalicFont
Definition: pdfw.hpp:47
Pdfw::WriteOptions::JSFilePath
Dtk_string JSFilePath
Adds a JavaScript file path executed for current 3D Artwork.
Definition: pdfw.hpp:174
Pdfw::PdfDocumentProperties::GetTitle
const Dtk_string & GetTitle() const
Pdfw::WriteOptions::WriteMeshCurves
Dtk_bool WriteMeshCurves
DTK_TRUE : Creates mesh curves (face boundaries), DTK_FALSE : no mesh curves (obsolete field)
Definition: pdfw.hpp:157
Pdfw::inTabVisibleNodes
Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > & inTabVisibleNodes
Definition: pdfw.hpp:656
Dtk_UInt32
uint32_t Dtk_UInt32
Definition: define.h:688
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Pdfw::WriteOptions::PrcTessChordHeight
Dtk_Double64 PrcTessChordHeight
Definition: pdfw.hpp:179
Pdfw::WriteOptions::PrcActivateCompTess
Dtk_bool PrcActivateCompTess
Definition: pdfw.hpp:183
Pdfw::Layout::GetCurrentPageWidth
Dtk_Double64 GetCurrentPageWidth()
Gets current page width.
Pdfw::Layout::SIZE_LETTER
@ SIZE_LETTER
Definition: pdfw.hpp:458
Pdfw::graphicinheritance
graphicinheritance
Definition: pdfw.hpp:13
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:712
Pdfw::Layout::GetCurrentPageHeight
Dtk_Double64 GetCurrentPageHeight()
Gets current page height.
Pdfw::inFaceIndex
const Dtk_tab< Dtk_ID > const Dtk_Size_t & inFaceIndex
Definition: pdfw.hpp:649
Pdfw::PdfDocumentProperties::SetTitle
void SetTitle(const Dtk_string &inString)
Add Title in Document Catalog Metadata.
Pdfw::WriteOptions::CrossSection
cross_section CrossSection
Cross section parameters.
Definition: pdfw.hpp:165
Pdfw::cross_section::CuttingPlaneOpacity
Dtk_Double64 CuttingPlaneOpacity
Definition: pdfw.hpp:28
Pdfw::Layout::SIZE_US5x7
@ SIZE_US5x7
Definition: pdfw.hpp:468
Pdfw::WriteOptions::DefaultViewBGColor
Dtk_RGB DefaultViewBGColor
Dtk_RGB(128,128,128) : Sets color of background default view. This color has RGB attributer,...
Definition: pdfw.hpp:141
DTK_FALSE
#define DTK_FALSE
Definition: define.h:728
Dtk_bool
char Dtk_bool
Definition: define.h:725
util_draw_dtk.hpp
Pdfw::Illustration
@ Illustration
Definition: pdfw.hpp:79
Pdfw::Layout::PageDirection
PageDirection
Definition: pdfw.hpp:475
Pdfw::cross_section::CuttingPlaneColor
Dtk_RGB CuttingPlaneColor
Definition: pdfw.hpp:27
Pdfw::AddNodeRenderInfo
DtkErrorStatus AddNodeRenderInfo(Dtk_RenderInfosPtr inRenderInfos)
Add rendering informations to current node.
Pdfw::keepsubtransparency
@ keepsubtransparency
Definition: pdfw.hpp:16
Pdfw::TransparentBoundingBoxOutline
@ TransparentBoundingBoxOutline
Definition: pdfw.hpp:73
Pdfw::cross_section::ShowCuttingPlane
Dtk_bool ShowCuttingPlane
Definition: pdfw.hpp:25
Pdfw::HiddenWireframe
@ HiddenWireframe
Definition: pdfw.hpp:76
Dtk_Double64
double Dtk_Double64
Definition: define.h:699
Layout
This namespace provides several methods for pdf layout management. .
Pdfw::HeadLamp
@ HeadLamp
Definition: pdfw.hpp:98
Pdfw::IsWriteInitialized
Dtk_bool IsWriteInitialized()
Test if PDF Writer is initialized.
Pdfw::Layout::WritePicture
Dtk_ErrorStatus WritePicture(Dtk_string inPicturePath, Dtk_Double64 inPictureBBox[4])
Write a picture.
Pdfw::PrimaryColorLights
@ PrimaryColorLights
Definition: pdfw.hpp:92
Pdfw::LayoutOptions::WriteLineThickness
Dtk_bool WriteLineThickness
DTK_TRUE : write line thickness, DTK_FALSE : Writes lines with thickness value equals to 0....
Definition: pdfw.hpp:41
Pdfw::WritePolylines
Dtk_ErrorStatus WritePolylines(Dtk_tab< Dtk_PolylinePtr > &inTabPolylines, Dtk_ID &outID, Dtk_InfoPtr inInfo=Dtk_InfoPtr())
Write polylines provided in parameter in one node.
Pdfw::WriteOptions::ShowTree
Dtk_bool ShowTree
DTK_TRUE : Show Model Tree, DTK_FALSE : Hides Model Tree.
Definition: pdfw.hpp:147
Dtk_Fdt::ScreenDisplayEnum
ScreenDisplayEnum
Definition: util_draw_dtk.hpp:7350
Pdfw::Layout::SetCurrentPageSize
Dtk_ErrorStatus SetCurrentPageSize(PageSizes inSize, PageDirection inDirection)
Sets current page size.
Pdfw::ReinstanciatePrototype
DtkErrorStatus ReinstanciatePrototype(Dtk_ID inID)
Reinstanciate children of node to reinstanciate in current node.
Pdfw::LayoutOptions::TTF_BoldItalicFont
Dtk_string TTF_BoldItalicFont
Definition: pdfw.hpp:48
util_mesh_dtk.hpp
Pdfw::Unset
@ Unset
Definition: pdfw.hpp:82
Pdfw::BoundingBox
@ BoundingBox
Definition: pdfw.hpp:71
Pdfw::Layout::SIZE_EXECUTIVE
@ SIZE_EXECUTIVE
Definition: pdfw.hpp:465
Pdfw::PdfDocumentProperties
Definition: pdfw.hpp:197
Pdfw::Layout::Init3DArtwork
DtkErrorStatus Init3DArtwork(Dtk_string inAnnotName=Dtk_string(), Pdfw::WriteOptions *inWriteOptions=NULL)
Starts Writing of 3D Artwork (3D model)
Pdfw::PdfDocumentProperties::SetAuthor
void SetAuthor(const Dtk_string &inString)
Add Author in Document Catalog Metadata.
Pdfw::StorePrototype
void StorePrototype(Dtk_ID inID)
Stores the identifier of a node.
Pdfw::cross_section::ShowIntersection
Dtk_bool ShowIntersection
Definition: pdfw.hpp:23
Pdfw::WriteOptions::WriteOptions
WriteOptions()
Base constructor.
Definition: pdfw.hpp:119
Pdfw::PdfDocumentProperties::SetPDFProducer
void SetPDFProducer(const Dtk_string &inString)
Add PDFProducer in Document Catalog Metadata.
Pdfw::ShadedWireframe
@ ShadedWireframe
Definition: pdfw.hpp:75
Pdfw::Layout::SIZE_LEGAL
@ SIZE_LEGAL
Definition: pdfw.hpp:459
Pdfw::Layout::WriteCompositeText
Dtk_ErrorStatus WriteCompositeText(Dtk_CompositeText &inCompositeText)
Write a composite text.
Pdfw::inTabTransfo
Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > inTabTransfo
Definition: pdfw.hpp:657
Pdfw::EndWrite
DtkErrorStatus EndWrite()
Creation of the output file and free the PDF Writer
util_ent_dtk.hpp
Pdfw::Layout::PageSizes
PageSizes
Definition: pdfw.hpp:457
Dtk_anchor_type
Dtk_anchor_type
Definition: util_draw_dtk.hpp:99
Dtk_Int32
int32_t Dtk_Int32
Definition: define.h:687
Pdfw::EndNode
DtkErrorStatus EndNode()
End the node.
Pdfw::LayoutOptions::RasterizeTexts
Dtk_bool RasterizeTexts
DTK_TRUE : rasterizing texts, DTK_FALSE : Converts texts as texts with the font you provide.
Definition: pdfw.hpp:39
Pdfw::inClippingEntity
Dtk_CameraPtr Dtk_EntityPtr inClippingEntity
Definition: pdfw.hpp:655
Pdfw::ShadedIllustration
@ ShadedIllustration
Definition: pdfw.hpp:81
Pdfw::Lighting
Lighting
Definition: pdfw.hpp:86
Pdfw::LayoutOptions::TTF_BoldFont
Dtk_string TTF_BoldFont
Definition: pdfw.hpp:46
Pdfw::Layout::LANDSCAPE
@ LANDSCAPE
Definition: pdfw.hpp:477
Pdfw::WriteOptions::DefaultLighting
Lighting DefaultLighting
Model Lighting mode in Acrobat.
Definition: pdfw.hpp:151
Pdfw::Layout::WritePolylines
Dtk_ErrorStatus WritePolylines(Dtk_tab< Dtk_PolylinePtr > &inTabPolylines)
Write a set of polylines.
Pdfw::Vertices
@ Vertices
Definition: pdfw.hpp:77
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Pdfw::LayoutOptions::TTF_Font
Dtk_string TTF_Font
Definition: pdfw.hpp:45
Pdfw::Layout::SIZE_US4x6
@ SIZE_US4x6
Definition: pdfw.hpp:466
Pdfw::inTabNormals
Dtk_tab< Dtk_dir > & inTabNormals
Definition: pdfw.hpp:674
Pdfw::Layout::SIZE_A5
@ SIZE_A5
Definition: pdfw.hpp:462
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_UChar8
unsigned char Dtk_UChar8
Definition: define.h:698
Pdfw::WriteOptions::DefaultRenderMode
RenderMode DefaultRenderMode
Model render mode in Acrobat.
Definition: pdfw.hpp:149
Pdfw::WriteOptions::OwnerPassword
Dtk_string OwnerPassword
Definition: pdfw.hpp:172
Pdfw::RedLights
@ RedLights
Definition: pdfw.hpp:95
Pdfw::Layout::FillRectangle
Dtk_ErrorStatus FillRectangle(Dtk_Double64 inBBox[4], Dtk_RGB inColor)
Fills a rectangle area with color.
Pdfw::inManageHideShowBody
Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > Dtk_RGB Dtk_bool inManageHideShowBody
Definition: pdfw.hpp:668
Pdfw::keepsubcolor
@ keepsubcolor
Definition: pdfw.hpp:15
Dtk_pnt
This is a mathematical point class.
Definition: dtk_pnt.hpp:22
Pdfw::WritePinToScreenPicture
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.
Pdfw::Layout::End3DArtwork
DtkErrorStatus End3DArtwork(Dtk_UInt32 &outartworkIndex)
Ends Writing of 3D Artwork.
Pdfw::DayLights
@ DayLights
Definition: pdfw.hpp:90
Pdfw::LayoutOptions
This structure provides several options to tune layout. It is a member of WriteOptions.
Definition: pdfw.hpp:35
Pdfw::WriteColoredPoints
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.
Dtk_CompositeText
This is the composite text class. It's basically a Dtk_Text Container. This class represents a group ...
Definition: util_draw_dtk.hpp:1557
Pdfw::inBackgroundColor
Dtk_CameraPtr Dtk_EntityPtr Dtk_tab< Dtk_ID > Dtk_tab< Dtk_transfo > Dtk_RGB inBackgroundColor
Definition: pdfw.hpp:658
Pdfw::SolidOutline
@ SolidOutline
Definition: pdfw.hpp:80
Pdfw::RenderMode
RenderMode
Model Render Mode in Acrobat.
Definition: pdfw.hpp:66
Pdfw::LayoutOptions::_3DAnnotActivation
Dtk_bool _3DAnnotActivation
Definition: pdfw.hpp:52
Pdfw::WriteEntity
Dtk_ErrorStatus WriteEntity(const Dtk_EntityPtr &inEntity)
Write the entity provided in parameter in a node.
Pdfw::WriteOptions::JSFileWriteMode
Dtk_string JSFileWriteMode
Definition: pdfw.hpp:175
Pdfw::TransparentBoundingBox
@ TransparentBoundingBox
Definition: pdfw.hpp:72
Pdfw::NoLights
@ NoLights
Definition: pdfw.hpp:87
Pdfw::cross_section::AddSectionCap
Dtk_bool AddSectionCap
Definition: pdfw.hpp:24
Dtk_tab
This is a high level array class.
Definition: util_stl_dtk.hpp:85
Pdfw::WriteOptions::PrcTessAngle
Dtk_Double64 PrcTessAngle
Definition: pdfw.hpp:178
Pdfw::WriteOptions::~WriteOptions
~WriteOptions()
Destructor.
Definition: pdfw.hpp:134
Pdfw::PdfDocumentProperties::GetPDFProducer
const Dtk_string & GetPDFProducer() const
Pdfw::WriteOptions::UserPassword
Dtk_string UserPassword
Definition: pdfw.hpp:169
Pdfw::inNodePathIDs
const Dtk_tab< Dtk_ID > & inNodePathIDs
Definition: pdfw.hpp:648
Pdfw::inInfo
Dtk_tab< Dtk_dir > Dtk_ID Dtk_InfoPtr inInfo
Definition: pdfw.hpp:676
Pdfw::PdfDocumentProperties::GetApplication
const Dtk_string & GetApplication() const
Pdfw::PdfDocumentProperties::GetKeywords
const Dtk_string & GetKeywords() const
Pdfw::InitNode
DtkErrorStatus InitNode(Dtk_string &inNodeName, const Dtk_transfo &inTransfo=Dtk_transfo())
Initialize a node.
Pdfw::LightsFromFile
@ LightsFromFile
Definition: pdfw.hpp:88
Pdfw::WriteOptions::ConvertRenderInfos
Dtk_bool ConvertRenderInfos
DTK_TRUE : Creates render infos (lightning + texturing), DTK_FALSE : no render infos.
Definition: pdfw.hpp:159
Pdfw::WriteParallelToScreenPicture
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.
Pdfw::WriteOptions::WritePRC
Dtk_bool WritePRC
DTK_TRUE : Embedding PRC file, DTK_FALSE : Embedding U3D file.
Definition: pdfw.hpp:161
Pdfw::PdfDocumentProperties::SetSubject
void SetSubject(const Dtk_string &inString)
Add Subject in Document Catalog Metadata.
Pdfw::WriteOptions::WriteModelDisplay
Dtk_bool WriteModelDisplay
DTK_TRUE : Creates model displays, DTK_FALSE : no model displays.
Definition: pdfw.hpp:155
Pdfw::Layout::PORTRAIT
@ PORTRAIT
Definition: pdfw.hpp:476
Pdfw::CADOptimizedLights
@ CADOptimizedLights
Definition: pdfw.hpp:97
Pdfw::AddDocumentProperties
Dtk_ErrorStatus AddDocumentProperties(const Pdfw::PdfDocumentProperties &inDocProperties, const Dtk_tab< Dtk_MetaDataPtr > &inMetadatas)
Writing Document Properties.
Pdfw::outID
Dtk_tab< Dtk_dir > Dtk_ID & outID
Definition: pdfw.hpp:675
Pdfw::PdfDocumentProperties::SetApplication
void SetApplication(const Dtk_string &inString)
Add Application in Document Catalog Metadata.
Pdfw::WriteOptions::RasterizeSymbols
Dtk_bool RasterizeSymbols
DTK_TRUE : Rasterizes symbols to avoid PRC font problem, DTK_FALSE : Using texts.
Definition: pdfw.hpp:188
Pdfw::LayoutOptions::ProcessDrawingBBoxAsPageBBox
Dtk_bool ProcessDrawingBBoxAsPageBBox
DTK_TRUE : Process Drawing BBox and use it to process PDF Page size, DTK_FALSE : Use Dtk_DrawingPtr H...
Definition: pdfw.hpp:58
Pdfw::ShadedVertices
@ ShadedVertices
Definition: pdfw.hpp:78
CreateModelDisplay
Dtk_ModelDisplayPtr CreateModelDisplay(const Dtk_string &name)
Definition: testlibjtwrite.cpp:942
Pdfw::attributeoverwrite
@ attributeoverwrite
Definition: pdfw.hpp:14
Pdfw::WriteBodyAndMesh
DtkErrorStatus WriteBodyAndMesh(const Dtk_BodyPtr &inBody, const Dtk_MeshPtr &inMesh, Dtk_ID &outID)
Write the entities provided in parameter in a node.
Pdfw::LayoutOptions::_3DAnnotSize
Dtk_Double64 _3DAnnotSize[4]
Definition: pdfw.hpp:56
Pdfw::cross_section::IntersectionColor
Dtk_RGB IntersectionColor
Definition: pdfw.hpp:26
Pdfw::WriteOptions::SplitLeaders
Dtk_bool SplitLeaders
DTK_TRUE : Splits leaders to text frames.
Definition: pdfw.hpp:190
Pdfw::Layout::SIZE_COMM10
@ SIZE_COMM10
Definition: pdfw.hpp:469
Dtk_RGB
Definition: dtk_rgb.hpp:7
Pdfw::Layout::SIZE_EOF
@ SIZE_EOF
Definition: pdfw.hpp:470
Pdfw::CubeLights
@ CubeLights
Definition: pdfw.hpp:96
Licence_dtk
char *(* Licence_dtk)(char *)
Definition: str_def.h:71
Pdfw::Layout::SIZE_B4
@ SIZE_B4
Definition: pdfw.hpp:463
Pdfw::NightLights
@ NightLights
Definition: pdfw.hpp:93
Dtk_dir
This is a mathematical direction class.
Definition: dtk_dir.hpp:15
Pdfw::WriteOptions::TransparentBackground
Dtk_bool TransparentBackground
DTK_TRUE : Transparent Background, DTK_FALSE : Opaque Background.
Definition: pdfw.hpp:153
Pdfw::CreateNodeConnectorHighlight
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.
Pdfw::WriteOptions::SeparateActiveViews
Dtk_bool SeparateActiveViews
DTK_TRUE : Creates one 3d pdf annotation for each active view, DTK_FALSE : only one 3d annotation.
Definition: pdfw.hpp:143
Pdfw::Layout::SIZE_A4
@ SIZE_A4
Definition: pdfw.hpp:461
Pdfw::WriteOptions::CreateDefaultView
Dtk_bool CreateDefaultView
DTK_TRUE : Creates Default View (isometric view), DTK_FALSE : no default view.
Definition: pdfw.hpp:139
Pdfw::Layout::InitPage
Dtk_ErrorStatus InitPage(Dtk_RGB inColor=Dtk_RGB(255, 255, 255), Dtk_Double64 inWidth=842, Dtk_Double64 inHeight=595)
LAYOUT METHODS.
Pdfw
Exported APIs for PDF Write Library.
Definition: pdfw.hpp:10
Pdfw::SolidWireframe
@ SolidWireframe
Definition: pdfw.hpp:68
Pdfw::WhiteLights
@ WhiteLights
Definition: pdfw.hpp:89
Pdfw::WritePictureWithLeaderLine
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()
Pdfw::WriteOptions::ShowToolbar
Dtk_bool ShowToolbar
DTK_TRUE : Show 3D Toolbar, DTK_FALSE : Hides 3D Toolbar.
Definition: pdfw.hpp:145