Exemplo n.º 1
0
        private static AISInteractiveObject BuildCircleDimension(TopoDSShape referenceShape, gpPnt textLocation)
        {
            var edge  = TopoDS.Edge(referenceShape);
            var curve = new BRepAdaptorCurve(edge);

            if (curve.GetType != GeomAbsCurveType.GeomAbs_Circle)
            {
                return(null);
            }

            // For a circle use a diameter dimension
            var circle   = curve.Circle;
            var diameter = 2.0 * circle.Radius;
            var text     = new TCollectionExtendedString(String.Format("{0:0.00}", diameter));
            var rd       = new AISDiameterDimension(referenceShape, diameter, text, textLocation,
                                                    DsgPrsArrowSide.DsgPrs_AS_BOTHAR, true, ArrowSize);

            rd.SetColor(QuantityNameOfColor.Quantity_NOC_RED);
            return(rd);
        }
Exemplo n.º 2
0
 public void AddComment(TCollectionExtendedString aComment)
 {
     CDM_Document_AddComment6EE6EE89(Instance, aComment.Instance);
 }
Exemplo n.º 3
0
 public void Set(TCollectionExtendedString theMsg)
 {
     Message_Msg_Set6EE6EE89(Instance, theMsg.Instance);
 }
Exemplo n.º 4
0
 public MessageMsg Arg(TCollectionExtendedString theString)
 {
     return(new MessageMsg(Message_Msg_Arg6EE6EE89(Instance, theString.Instance)));
 }
Exemplo n.º 5
0
 public void EndOfUpdate(CDMDocument aDocument, bool Status, TCollectionExtendedString ErrorString)
 {
     CDM_Application_EndOfUpdateE3A9B7F3(Instance, aDocument.Instance, Status, ErrorString.Instance);
 }
Exemplo n.º 6
0
 public MessageMsg(TCollectionExtendedString theKey)
     :
     base(Message_Msg_Ctor6EE6EE89(theKey.Instance))
 {
 }
Exemplo n.º 7
0
 public void GraduatedTrihedronDisplay(TCollectionExtendedString xname, TCollectionExtendedString yname, TCollectionExtendedString zname, bool xdrawname, bool ydrawname, bool zdrawname, bool xdrawvalues, bool ydrawvalues, bool zdrawvalues, bool drawgrid, bool drawaxes, int nbx, int nby, int nbz, int xoffset, int yoffset, int zoffset, int xaxisoffset, int yaxisoffset, int zaxisoffset, bool xdrawtickmarks, bool ydrawtickmarks, bool zdrawtickmarks, int xtickmarklength, int ytickmarklength, int ztickmarklength, QuantityColor gridcolor, QuantityColor xnamecolor, QuantityColor ynamecolor, QuantityColor znamecolor, QuantityColor xcolor, QuantityColor ycolor, QuantityColor zcolor, TCollectionAsciiString fontOfNames, FontFontAspect styleOfNames, int sizeOfNames, TCollectionAsciiString fontOfValues, FontFontAspect styleOfValues, int sizeOfValues)
 {
     Visual3d_View_GraduatedTrihedronDisplayC3638B35(Instance, xname.Instance, yname.Instance, zname.Instance, xdrawname, ydrawname, zdrawname, xdrawvalues, ydrawvalues, zdrawvalues, drawgrid, drawaxes, nbx, nby, nbz, xoffset, yoffset, zoffset, xaxisoffset, yaxisoffset, zaxisoffset, xdrawtickmarks, ydrawtickmarks, zdrawtickmarks, xtickmarklength, ytickmarklength, ztickmarklength, gridcolor.Instance, xnamecolor.Instance, ynamecolor.Instance, znamecolor.Instance, xcolor.Instance, ycolor.Instance, zcolor.Instance, fontOfNames.Instance, (int)styleOfNames, sizeOfNames, fontOfValues.Instance, (int)styleOfValues, sizeOfValues);
 }
Exemplo n.º 8
0
 public bool GetAlternativeDocument(TCollectionExtendedString aFormat, CDMDocument anAlternativeDocument)
 {
     return(CDM_Document_GetAlternativeDocumentF38A10D6(Instance, aFormat.Instance, anAlternativeDocument.Instance));
 }
 public AISLengthDimension(TopoDSShape aFShape, TopoDSShape aSShape, GeomPlane aPlane, double aVal, TCollectionExtendedString aText)
     :
     base(AIS_LengthDimension_CtorFBAAB8FA(aFShape.Instance, aSShape.Instance, aPlane.Instance, aVal, aText.Instance))
 {
 }
 public AISLengthDimension(TopoDSShape aFShape, TopoDSShape aSShape, GeomPlane aPlane, double aVal, TCollectionExtendedString aText, gpPnt aPosition, DsgPrsArrowSide aSymbolPrs, AISTypeOfDist aTypeDist, double anArrowSize)
     :
     base(AIS_LengthDimension_CtorEA089509(aFShape.Instance, aSShape.Instance, aPlane.Instance, aVal, aText.Instance, aPosition.Instance, (int)aSymbolPrs, (int)aTypeDist, anArrowSize))
 {
 }
 public AISLengthDimension(TopoDSFace Face, TopoDSEdge Edge, double Val, TCollectionExtendedString Text)
     :
     base(AIS_LengthDimension_CtorC2ADA788(Face.Instance, Edge.Instance, Val, Text.Instance))
 {
 }
 public AISLengthDimension(TopoDSFace aFirstFace, TopoDSFace aSecondFace, double aVal, TCollectionExtendedString aText, gpPnt aPosition, DsgPrsArrowSide aSymbolPrs, double anArrowSize)
     :
     base(AIS_LengthDimension_Ctor5485084F(aFirstFace.Instance, aSecondFace.Instance, aVal, aText.Instance, aPosition.Instance, (int)aSymbolPrs, anArrowSize))
 {
 }
 public AISLengthDimension(TopoDSFace aFirstFace, TopoDSFace aSecondFace, double aVal, TCollectionExtendedString aText)
     :
     base(AIS_LengthDimension_CtorE30AADB(aFirstFace.Instance, aSecondFace.Instance, aVal, aText.Instance))
 {
 }
Exemplo n.º 14
0
 public static CDMDocument FindFromPresentation(TCollectionExtendedString aPresentation)
 {
     return(new CDMDocument(CDM_Document_FindFromPresentation6EE6EE89(aPresentation.Instance)));
 }
 public AISDiameterDimension(TopoDSShape aShape, double aVal, TCollectionExtendedString aText)
     :
     base(AIS_DiameterDimension_Ctor1C945158(aShape.Instance, aVal, aText.Instance))
 {
 }
Exemplo n.º 16
0
 public static bool FindPresentation(TCollectionExtendedString aPresentation)
 {
     return(CDM_Document_FindPresentation6EE6EE89(aPresentation.Instance));
 }
 public AISDiameterDimension(TopoDSShape aShape, double aVal, TCollectionExtendedString aText, gpPnt aPosition, DsgPrsArrowSide aSymbolPrs, bool aDiamSymbol, double anArrowSize)
     :
     base(AIS_DiameterDimension_Ctor54910EE4(aShape.Instance, aVal, aText.Instance, aPosition.Instance, (int)aSymbolPrs, aDiamSymbol, anArrowSize))
 {
 }
Exemplo n.º 18
0
 public void WriteMessage(TCollectionExtendedString theMessage)
 {
     MDF_ASDriver_WriteMessage6EE6EE89(Instance, theMessage.Instance);
 }
Exemplo n.º 19
0
 public static CDMMetaData LookUp(TCollectionExtendedString aFolder, TCollectionExtendedString aName, TCollectionExtendedString aPath, TCollectionExtendedString aVersion, TCollectionExtendedString aFileName, bool ReadOnly)
 {
     return(new CDMMetaData(CDM_MetaData_LookUp52AB094A(aFolder.Instance, aName.Instance, aPath.Instance, aVersion.Instance, aFileName.Instance, ReadOnly)));
 }