AIS_ColoredShape::Compute() - add NULL shape check.
AIS presentations - removed redundant clearance within ::Compute()
which is always done in advance within PrsMgr_PresentationManager::Update().
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
- thePresentation->Clear();
mySelectionGeom.Clear (theMode);
if (!IsValid())
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
- //Pro.... : pas de prise en compte des axes lors du FITALL (jmi)
aPresentation->SetInfiniteState (myInfiniteState);
aPresentation->SetDisplayPriority(5);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
Handle(Geom_Curve) gcurv;
gp_Pnt pfirst,plast;
const TopoDS_Edge& thechamfedge = TopoDS::Edge(myFShape);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
//----------------------------
// Calcul du centre de la face
//----------------------------
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer /*aMode*/)
{
- aPresentation->Clear();
-
aPresentation->SetDisplayPriority(5);
if (myCircleIsArc) ComputeArc(aPresentation);
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode)
{
- thePrs->Clear();
+ if (myshape.IsNull())
+ {
+ return;
+ }
+
if (IsInfinite())
{
thePrs->SetInfiniteState (Standard_True);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
TopAbs_ShapeEnum type2(mySShape.ShapeType());
aPresentation->SetInfiniteState(Standard_True);
switch (myFShape.ShapeType()) {
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
- thePresentation->Clear();
mySelectionGeom.Clear (theMode);
if (!IsValid())
const Handle( Prs3d_Presentation )& aPresentation,
const Standard_Integer )
{
-
- aPresentation->Clear();
-
gp_Pnt Position12 = myPosition, Position34 = myPosition;
Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
const Handle( Prs3d_Presentation )& aPresentation,
const Standard_Integer )
{
- aPresentation->Clear();
-
BRepAdaptor_Curve FirstCurve( TopoDS::Edge( myFShape ) ), SecondCurve( TopoDS::Edge( mySShape ) );
Standard_Real FirstPar1 = FirstCurve.FirstParameter(), LastPar1 = FirstCurve.LastParameter(),
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
// Calculate position of the symbol and
// point of attach of the segment on the shape
gp_Pnt curpos;
const Handle(Prs3d_Presentation)& aprs,
const Standard_Integer)
{
- aprs->Clear();
-
switch ( myFShape.ShapeType() ) {
case TopAbs_VERTEX:
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
- thePresentation->Clear();
mySelectionGeom.Clear (theMode);
if (!IsValid())
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
aPresentation->SetDisplayPriority(5);
if (!myLineIsSegment) ComputeInfiniteLine(aPresentation);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer /*aMode*/)
{
- aPresentation->Clear();
-
// if( myAutomaticPosition )
{//ota : recompute in any case
ComputeGeometry();
const Handle(Prs3d_Presentation)& aprs,
const Standard_Integer)
{
- aprs->Clear();
-
if (myTool.ShapeType() == TopAbs_VERTEX)
{
gp_Pnt pp;
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer /*aMode*/)
{
- aPresentation->Clear();
-
// if( myAutomaticPosition )
//{ //ota : recompute ellipse always
ComputeGeometry();
const Handle(Prs3d_Presentation)& aprs,
const Standard_Integer)
{
- aprs->Clear();
-
- //cout << endl << "This is strange Offset Dimension!" << endl;
-
gp_Trsf aInvertTrsf = myRelativePos;
//myArrowSize = fabs (myVal/5.);
myArrowSize = fabs (myVal/10.0);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
switch (myFShape.ShapeType())
{
case TopAbs_FACE :
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
if (myFShape.ShapeType() == mySShape.ShapeType()) {
switch (myFShape.ShapeType()) {
case TopAbs_FACE :
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode)
{
- aPresentation->Clear();
-
ComputeFields();
aPresentation->SetInfiniteState(myInfiniteState);
myDrawer->PlaneAspect()->EdgesAspect()->SetWidth(myCurrentMode == 0? 1 : 3);
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
aPresentation->SetDisplayPriority(5);
// drawing axis in X direction
gp_Pnt first, last;
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode)
{
- aPresentation->Clear();
-
aPresentation->SetInfiniteState(myInfiniteState);
if (aMode==0)
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode)
{
- thePrs->Clear();
switch (theMode)
{
case AIS_PointCloud::DM_Points:
const Handle(Prs3d_Presentation)& thePresentation,
const Standard_Integer theMode)
{
- thePresentation->Clear();
mySelectionGeom.Clear (theMode);
if (!IsValid())
const Handle(Prs3d_Presentation)& aPrs,
const Standard_Integer theMode)
{
- aPrs->Clear();
if(myshape.IsNull()) return;
// wire,edge,vertex -> pas de HLR + priorite display superieure
const Handle(Prs3d_Presentation)& aprs,
const Standard_Integer)
{
- aprs->Clear();
-
switch (myFShape.ShapeType()) {
case TopAbs_FACE :
{
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer)
{
- aPresentation->Clear();
-
switch (myFShape.ShapeType())
{
case TopAbs_FACE :
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode)
{
- thePrs->Clear();
-
if (myshape.IsNull())
{
return;
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode)
{
- aPresentation->Clear();
-
aPresentation->SetInfiniteState (Standard_True);
switch(aMode){
case 0: