API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdCADReference Class
OdCADReference Class
OdPdfPublish__OdCADReferenceOdPdfPublish__OdCADReferenceOdPdfPublish__OdCADReference
Syntax
C++
class OdCADReference : public OdObject;

PdfPublishCADReference.h

This class implements a reference to a CAD object in .pdf documents created with Publish SDK. The interface of this class sets a visual representation of any two-dimensional CAD object by setting its transformation, scale, rotation angle and translation. The target object is defined with the OdCADDefinition class, and the instance of OdCADReference just refers to it. Any modifications are applied to the visual representation, not to the target object. For example, if you have an object with dimension 10x10 units and create a reference to it through the instance of the OdCADReference class, then call the setScale() method with the input parameter value equal to 2.0, the reference object in the document will have a dimension of 20x20 units.

 
Name 
Description 
 
Destroys the CAD reference. 
 
Name 
Description 
 
Returns the current value of the border flag for the CAD reference.  
 
Returns the current border color for the CAD reference.  
 
Returns the current border width for the CAD reference.  
 
Returns the current CAD definition object for the CAD reference.  
 
Returns the current clipping boundary for the CAD reference.  
 
Returns the current value of the border flag for the CAD reference's clipping boundary. The border flag determines whether the clipping boundary has a border. If the flag value is true, the boundary has a border, otherwise (when flag value is false) it has no border.  
 
Returns the current border color for the CAD reference's clipping boundary.  
 
Returns the current border width for the CAD reference's clipping boundary.  
 
Returns the current rotation angle for the CAD reference in radians.  
 
Returns the current scale value for the CAD reference.  
 
Returns the current transformation matrix for the CAD reference.  
 
Returns the current translation vector for the CAD reference.  
 
Sets the border flag for the CAD reference.  
 
Sets the border color for the CAD reference.  
 
Sets the border width for the CAD reference.  
 
Sets the CADDefinition object for the CAD reference.  
 
Sets the clipping boundary for the CAD reference.  
 
Sets the border flag value for the CAD reference's clipping boundary. The border flag determines whether the clipping boundary has a border. If the flag value is true, the boundary has a border, otherwise (when flag value is false) it has no border.  
 
Sets the border color for the CAD reference's clipping boundary.  
 
Sets the border width for the CAD reference's clipping boundary.  
 
Sets the rotation angle for the CAD reference. The angle is set in radians.  
 
Sets the the CAD reference scale.  
 
Sets the transformation matrix for the CAD reference.  
 
Sets the translation vector for the CAD reference.  
Copyright © 2002–2020. Open Design Alliance. All rights reserved.