1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
15 #include <Prs3d_PointAspect.hxx>
17 #include <Standard_Dump.hxx>
19 IMPLEMENT_STANDARD_RTTIEXT(Prs3d_PointAspect, Prs3d_BasicAspect)
21 // =======================================================================
22 // function : Prs3d_PointAspect
24 // =======================================================================
25 Prs3d_PointAspect::Prs3d_PointAspect (const Aspect_TypeOfMarker theType,
26 const Quantity_Color& theColor,
27 const Standard_Real theScale)
28 : myAspect (new Graphic3d_AspectMarker3d (theType, theColor, theScale))
33 // =======================================================================
34 // function : Prs3d_PointAspect
36 // =======================================================================
37 Prs3d_PointAspect::Prs3d_PointAspect (const Quantity_Color& theColor,
38 const Standard_Integer theWidth,
39 const Standard_Integer theHeight,
40 const Handle(TColStd_HArray1OfByte)& theTexture)
41 : myAspect (new Graphic3d_AspectMarker3d (theColor, theWidth, theHeight, theTexture))
46 // =======================================================================
47 // function : DumpJson
49 // =======================================================================
50 void Prs3d_PointAspect::DumpJson (Standard_OStream& theOStream, const Standard_Integer theDepth) const
52 DUMP_CLASS_BEGIN (theOStream, Prs3d_PointAspect);
53 DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, myAspect.get());