File indexing completed on 2025-01-18 10:05:32
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _VrmlConverter_Drawer_HeaderFile
0018 #define _VrmlConverter_Drawer_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Standard_Integer.hxx>
0024 #include <Aspect_TypeOfDeflection.hxx>
0025 #include <Standard_Transient.hxx>
0026 class VrmlConverter_IsoAspect;
0027 class VrmlConverter_LineAspect;
0028 class VrmlConverter_ShadingAspect;
0029 class VrmlConverter_PointAspect;
0030
0031
0032 class VrmlConverter_Drawer;
0033 DEFINE_STANDARD_HANDLE(VrmlConverter_Drawer, Standard_Transient)
0034
0035
0036
0037
0038 class VrmlConverter_Drawer : public Standard_Transient
0039 {
0040
0041 public:
0042
0043
0044 Standard_EXPORT VrmlConverter_Drawer();
0045
0046
0047
0048 Standard_EXPORT void SetTypeOfDeflection (const Aspect_TypeOfDeflection aTypeOfDeflection);
0049
0050 Standard_EXPORT Aspect_TypeOfDeflection TypeOfDeflection() const;
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060 Standard_EXPORT void SetMaximalChordialDeviation (const Standard_Real aChordialDeviation);
0061
0062
0063
0064 Standard_EXPORT Standard_Real MaximalChordialDeviation() const;
0065
0066
0067 Standard_EXPORT void SetDeviationCoefficient (const Standard_Real aCoefficient);
0068
0069 Standard_EXPORT Standard_Real DeviationCoefficient() const;
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079
0080 Standard_EXPORT void SetDiscretisation (const Standard_Integer d);
0081
0082 Standard_EXPORT Standard_Integer Discretisation() const;
0083
0084
0085
0086
0087
0088
0089
0090 Standard_EXPORT void SetMaximalParameterValue (const Standard_Real Value);
0091
0092 Standard_EXPORT Standard_Real MaximalParameterValue() const;
0093
0094
0095
0096 Standard_EXPORT void SetIsoOnPlane (const Standard_Boolean OnOff);
0097
0098
0099 Standard_EXPORT Standard_Boolean IsoOnPlane() const;
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109 Standard_EXPORT Handle(VrmlConverter_IsoAspect) UIsoAspect();
0110
0111 Standard_EXPORT void SetUIsoAspect (const Handle(VrmlConverter_IsoAspect)& anAspect);
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121 Standard_EXPORT Handle(VrmlConverter_IsoAspect) VIsoAspect();
0122
0123 Standard_EXPORT void SetVIsoAspect (const Handle(VrmlConverter_IsoAspect)& anAspect);
0124
0125
0126
0127
0128
0129
0130 Standard_EXPORT Handle(VrmlConverter_LineAspect) FreeBoundaryAspect();
0131
0132 Standard_EXPORT void SetFreeBoundaryAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0133
0134
0135
0136 Standard_EXPORT void SetFreeBoundaryDraw (const Standard_Boolean OnOff);
0137
0138
0139 Standard_EXPORT Standard_Boolean FreeBoundaryDraw() const;
0140
0141
0142
0143
0144
0145
0146 Standard_EXPORT Handle(VrmlConverter_LineAspect) WireAspect();
0147
0148 Standard_EXPORT void SetWireAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0149
0150
0151
0152 Standard_EXPORT void SetWireDraw (const Standard_Boolean OnOff);
0153
0154
0155 Standard_EXPORT Standard_Boolean WireDraw() const;
0156
0157
0158
0159
0160
0161
0162 Standard_EXPORT Handle(VrmlConverter_LineAspect) UnFreeBoundaryAspect();
0163
0164 Standard_EXPORT void SetUnFreeBoundaryAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0165
0166
0167
0168 Standard_EXPORT void SetUnFreeBoundaryDraw (const Standard_Boolean OnOff);
0169
0170
0171 Standard_EXPORT Standard_Boolean UnFreeBoundaryDraw() const;
0172
0173
0174
0175 Standard_EXPORT Handle(VrmlConverter_LineAspect) LineAspect();
0176
0177 Standard_EXPORT void SetLineAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0178
0179 Standard_EXPORT Handle(VrmlConverter_PointAspect) PointAspect();
0180
0181 Standard_EXPORT void SetPointAspect (const Handle(VrmlConverter_PointAspect)& anAspect);
0182
0183
0184
0185 Standard_EXPORT Handle(VrmlConverter_ShadingAspect) ShadingAspect();
0186
0187 Standard_EXPORT void SetShadingAspect (const Handle(VrmlConverter_ShadingAspect)& anAspect);
0188
0189
0190
0191 Standard_EXPORT Standard_Boolean DrawHiddenLine() const;
0192
0193
0194 Standard_EXPORT void EnableDrawHiddenLine();
0195
0196
0197 Standard_EXPORT void DisableDrawHiddenLine();
0198
0199
0200
0201 Standard_EXPORT Handle(VrmlConverter_LineAspect) HiddenLineAspect();
0202
0203
0204 Standard_EXPORT void SetHiddenLineAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0205
0206
0207
0208 Standard_EXPORT Handle(VrmlConverter_LineAspect) SeenLineAspect();
0209
0210
0211 Standard_EXPORT void SetSeenLineAspect (const Handle(VrmlConverter_LineAspect)& anAspect);
0212
0213 DEFINE_STANDARD_RTTIEXT(VrmlConverter_Drawer,Standard_Transient)
0214
0215 private:
0216
0217 Handle(VrmlConverter_IsoAspect) myUIsoAspect;
0218 Handle(VrmlConverter_IsoAspect) myVIsoAspect;
0219 Standard_Integer myNbPoints;
0220 Standard_Boolean myIsoOnPlane;
0221 Handle(VrmlConverter_LineAspect) myFreeBoundaryAspect;
0222 Standard_Boolean myFreeBoundaryDraw;
0223 Handle(VrmlConverter_LineAspect) myUnFreeBoundaryAspect;
0224 Standard_Boolean myUnFreeBoundaryDraw;
0225 Handle(VrmlConverter_LineAspect) myWireAspect;
0226 Standard_Boolean myWireDraw;
0227 Handle(VrmlConverter_LineAspect) myLineAspect;
0228 Handle(VrmlConverter_ShadingAspect) myShadingAspect;
0229 Standard_Real myChordialDeviation;
0230 Aspect_TypeOfDeflection myTypeOfDeflection;
0231 Standard_Real myMaximalParameterValue;
0232 Standard_Real myDeviationCoefficient;
0233 Handle(VrmlConverter_PointAspect) myPointAspect;
0234 Standard_Boolean myDrawHiddenLine;
0235 Handle(VrmlConverter_LineAspect) myHiddenLineAspect;
0236 Handle(VrmlConverter_LineAspect) mySeenLineAspect;
0237
0238 };
0239
0240 #endif