From: kgv Date: Wed, 11 Dec 2013 05:31:04 +0000 (+0400) Subject: 0024455: Graphic3d_Group - restore Marker() method to simplify porting X-Git-Tag: V6_7_0~13 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7551feda2008f24fad2fce8e2c31841269128f5b;p=occt-copy.git 0024455: Graphic3d_Group - restore Marker() method to simplify porting --- diff --git a/src/Graphic3d/Graphic3d_Group.cdl b/src/Graphic3d/Graphic3d_Group.cdl index c91f4005b6..bf95ccc138 100755 --- a/src/Graphic3d/Graphic3d_Group.cdl +++ b/src/Graphic3d/Graphic3d_Group.cdl @@ -359,6 +359,13 @@ class Group from Graphic3d inherits TShared ---Level: Public ---Purpose: Adds an array of primitives for display + Marker ( me : mutable; + thePoint : Vertex from Graphic3d; + theToEvalMinMax : Boolean from Standard = Standard_True ) + is static; + ---Level: Public + ---Purpose: Creates a primitive array with single marker using AddPrimitiveArray(). + UserDraw ( me : mutable; AnObject : Address from Standard; EvalMinMax : Boolean from Standard = Standard_True; diff --git a/src/Graphic3d/Graphic3d_Group_13.cxx b/src/Graphic3d/Graphic3d_Group_13.cxx index 1678f7070f..68d3addbd5 100755 --- a/src/Graphic3d/Graphic3d_Group_13.cxx +++ b/src/Graphic3d/Graphic3d_Group_13.cxx @@ -19,6 +19,8 @@ #include #include + +#include #include // ======================================================================= @@ -65,6 +67,19 @@ void Graphic3d_Group :: AddPrimitiveArray ( const Handle(Graphic3d_ArrayOfPrimit Update (); } +// ======================================================================= +// function : Marker +// purpose : +// ======================================================================= + +void Graphic3d_Group::Marker (const Graphic3d_Vertex& thePoint, + const Standard_Boolean theToEvalMinMax) +{ + Handle(Graphic3d_ArrayOfPoints) aPoints = new Graphic3d_ArrayOfPoints (1); + aPoints->AddVertex (thePoint.X(), thePoint.Y(), thePoint.Z()); + AddPrimitiveArray (aPoints, theToEvalMinMax); +} + // ======================================================================= // function : UserDraw // purpose :