-- in representations of lengths. The lengths displayed
-- are either on their own or in chamfers, fillets,
-- diameters and radii.
+
Create (anAngle: PlaneAngle from Quantity; aLength: Length from Quantity)
returns ArrowAspect from Prs3d;
--- Purpose: Constructs a framework to display an arrow with a
-- shaft of the length aLength and having a head with
-- sides at the angle anAngle from each other.
+
+ Create( theAspect: AspectLine3d from Graphic3d )
+ returns ArrowAspect from Prs3d;
SetAngle(me: mutable; anAngle: PlaneAngle from Quantity)
---Purpose: defines the angle of the arrows.
Aspect(me) returns AspectLine3d from Graphic3d;
+ SetAspect( me: mutable; theAspect: AspectLine3d from Graphic3d );
+
fields
myArrowAspect: AspectLine3d from Graphic3d;
myAngle: PlaneAngle from Quantity;
Quantity_Color(Quantity_NOC_WHITE), Aspect_TOL_SOLID, 1.0);
}
+Prs3d_ArrowAspect::Prs3d_ArrowAspect( const Handle( Graphic3d_AspectLine3d )& theAspect )
+ : myAngle(M_PI/180.*10), myLength(1.)
+{
+ myArrowAspect = theAspect;
+}
+
void Prs3d_ArrowAspect::SetAngle ( const Quantity_PlaneAngle anAngle) {
Prs3d_InvalidAngle_Raise_if ( anAngle <= 0. ||
anAngle >= M_PI /2. , "");
return myLength;
}
+
void Prs3d_ArrowAspect::SetColor(const Quantity_Color &aColor) {
myArrowAspect->SetColor(aColor);
}
Handle(Graphic3d_AspectLine3d) Prs3d_ArrowAspect::Aspect() const {
return myArrowAspect;
}
+
+
+void Prs3d_ArrowAspect::SetAspect( const Handle( Graphic3d_AspectLine3d )& theAspect )
+{
+ myArrowAspect = theAspect;
+}
+
aType: TypeOfLine from Aspect;
aWidth: Real from Standard)
returns LineAspect from Prs3d;
+
+ Create( theAspect: AspectLine3d from Graphic3d )
+ returns LineAspect from Prs3d;
SetColor (me: mutable; aColor: Color from Quantity) is static;
is static;
--- Purpose: Returns the line aspect. This is defined as the set of
-- color, type and thickness attributes.
+
+ SetAspect( me: mutable; theAspect: AspectLine3d from Graphic3d );
fields
(Quantity_Color(aColor),aType,aWidth);
}
+Prs3d_LineAspect::Prs3d_LineAspect( const Handle( Graphic3d_AspectLine3d )& theAspect )
+{
+ myAspect = theAspect;
+}
+
+
+
void Prs3d_LineAspect::SetColor(const Quantity_Color &aColor) {
myAspect->SetColor(aColor);
}
Handle (Graphic3d_AspectLine3d) Prs3d_LineAspect::Aspect () const {
return myAspect;
}
+
+void Prs3d_LineAspect::SetAspect( const Handle( Graphic3d_AspectLine3d )& theAspect )
+{
+ myAspect = theAspect;
+}
returns PointAspect from Prs3d;
---Purpose: defines only the urer defined marker point.
+ Create( theAspect : AspectMarker3d from Graphic3d )
+ returns PointAspect from Prs3d;
SetColor (me: mutable; aColor: Color from Quantity) is static;
Aspect(me) returns AspectMarker3d from Graphic3d
is static;
+
+ SetAspect( me: mutable; theAspect: AspectMarker3d from Graphic3d );
GetTextureSize (me:mutable; AWidth : out Integer from Standard;
AHeight : out Integer from Standard);
(aColor,aWidth,aHeight,aTexture);
}
+Prs3d_PointAspect::Prs3d_PointAspect( const Handle( Graphic3d_AspectMarker3d )& theAspect )
+{
+ myAspect = theAspect;
+}
+
+
void Prs3d_PointAspect::SetColor(const Quantity_Color &aColor) {
myAspect->SetColor(aColor);
}
+
void Prs3d_PointAspect::SetColor(const Quantity_NameOfColor aColor) {
myAspect->SetColor(Quantity_Color(aColor));
}
return myAspect;
}
+void Prs3d_PointAspect::SetAspect( const Handle( Graphic3d_AspectMarker3d )& theAspect )
+{
+ myAspect = theAspect;
+}
+
void Prs3d_PointAspect::GetTextureSize(Standard_Integer& AWidth, Standard_Integer& AHeight)
{
myAspect->GetTextureSize( AWidth, AHeight);
Create
---Purpose: Constructs an empty framework to display shading.
returns ShadingAspect from Prs3d;
+
+ Create( theAspect: AspectFillArea3d from Graphic3d )
+ returns ShadingAspect from Prs3d;
SetColor (me: mutable; aColor: Color from Quantity;
aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_BOTH_SIDE)
--- Purpose: Change the polygons transparency value.
-- Warning : aValue must be in the range 0,1. 0 is the default (NO transparent)
- SetAspect(me:mutable; Asp : AspectFillArea3d from Graphic3d);
- --- Purpose: Change the polygons aspect properties.
-
Color (me; aModel: TypeOfFacingModel from Aspect = Aspect_TOFM_FRONT_SIDE)
returns Color from Quantity is static;
--- Purpose: Returns the polygons color.
Aspect (me) returns AspectFillArea3d from Graphic3d;
--- Purpose: Returns the polygons aspect properties.
+
+ SetAspect( me: mutable; theAspect: AspectFillArea3d from Graphic3d );
fields
aMat);
}
+Prs3d_ShadingAspect::Prs3d_ShadingAspect( const Handle( Graphic3d_AspectFillArea3d )& theAspect )
+{
+ myAspect = theAspect;
+}
//=======================================================================
//function : SetColor
//purpose :
//=======================================================================
-void Prs3d_ShadingAspect::SetAspect(const Handle(Graphic3d_AspectFillArea3d)& Asp)
+void Prs3d_ShadingAspect::SetAspect( const Handle( Graphic3d_AspectFillArea3d )& theAspect )
{
- myAspect=Asp;
+ myAspect = theAspect;
}
Handle (Graphic3d_AspectFillArea3d) Prs3d_ShadingAspect::Aspect () const {
return myAspect;
}
-
Create returns TextAspect from Prs3d;
--- Purpose: Constructs an empty framework for defining display attributes of text.
+ Create( theAspect: AspectText3d from Graphic3d )
+ returns TextAspect from Prs3d;
+
SetColor(me: mutable; aColor: Color from Quantity);
SetColor(me: mutable; aColor: NameOfColor from Quantity);
-- - font
-- - height/width ratio, that is, the expansion factor, and
-- - space between characters.
+
+ SetAspect( me: mutable; theAspect: AspectText3d from Graphic3d );
fields
myTextAspect: AspectText3d from Graphic3d;
0.);
}
+Prs3d_TextAspect::Prs3d_TextAspect( const Handle( Graphic3d_AspectText3d )& theAspect )
+: myAngle(0.),
+ myHeight(16.),
+ myHorizontalJustification(Graphic3d_HTA_LEFT),
+ myVerticalJustification(Graphic3d_VTA_BOTTOM),
+ myOrientation(Graphic3d_TP_RIGHT)
+{
+ myTextAspect = theAspect;
+}
+
+
void Prs3d_TextAspect::SetColor(const Quantity_Color &aColor) {
myTextAspect->SetColor(aColor);
}
Handle(Graphic3d_AspectText3d) Prs3d_TextAspect::Aspect() const {
return myTextAspect;
}
+
+void Prs3d_TextAspect::SetAspect( const Handle( Graphic3d_AspectText3d )& theAspect )
+{
+ myTextAspect = theAspect;
+}