Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
// portage WNT
return GeomAbs_OtherCurve;
- break;
}
}
break;
else {
return GeomAbs_Plane;
}
- break;
}
case GeomAbs_Circle:
else {
return GeomAbs_SurfaceOfExtrusion;
}
- break;
}
// JAG 10.11.95
else {
return GeomAbs_SurfaceOfExtrusion;
}
- break;
}
case GeomAbs_Parabola:
else {
return GeomAbs_SurfaceOfExtrusion;
}
- break;
}
case GeomAbs_Hyperbola:
else {
return GeomAbs_SurfaceOfExtrusion;
}
- break;
}
default:
return bRet;
}
}
- break;
}//case GeomAbs_Line:
//
case GeomAbs_Circle: {
}
return bRet;
}
- break;
}
//
default:
gp_Pnt2d P = AC.Value(QU.Parameter(i));
if (FC.Perform(P, Standard_False) == TopAbs_OUT) {
return Standard_False;
- break;
}
}
return Standard_True;
Geom2dAdaptor_Curve AC(C,f1,l1);
if (!IsIn(FC,AC)) {
return Standard_False;
- break;
}
}
return Standard_True;
gp_Pnt2d P = AC.Value(QU.Parameter(i));
if (FC.Perform(P) != S) {
return Standard_False;
- break;
}
}
return Standard_True;
#include <CDF.ixx>
#include <Standard_Failure.hxx>
-void static CDF_InitApplication () {
+static void CDF_InitApplication () {
static Standard_Boolean FirstApplication = Standard_True;
PP.SetCoord(P.X(),P.Y(),0.);
}
-static inline void D13d(const Standard_Address C, const Standard_Real U,
- gp_Pnt& P, gp_Vec& V1)
-{
- ((Adaptor3d_Curve*)C)->D1(U,P,V1);
-}
-
static inline void D23d(const Standard_Address C, const Standard_Real U,
gp_Pnt& P, gp_Vec& V1, gp_Vec& V2)
{
case TDataXtd_POINT :
{
return DrawableShape(L,Draw_jaune,Standard_False);
- break;
}
case TDataXtd_LINE :
case TDataXtd_CIRCLE :
case TDataXtd_SPLINE :
{
return DrawableShape(L,Draw_cyan,Standard_False);
- break;
}
case TDataXtd_ANY_GEOM :
{
typedef Tcl_Interp *Draw_PInterp;
-
-#include <Standard_Type.hxx>
-inline const Handle(Standard_Type)& STANDARD_TYPE(Draw_PInterp) {return *((Handle(Standard_Type)*)0);}
-
#endif
localObjet->WExpose();
localObjet->Redraw();
return 0l;
- break;
}
default:
mySqDist->SetValue(1, aDist * aDist);
} else {
Standard_Integer aNbExt = anExtC.NbExt();
- gp_Pnt aCenter = C.Location();
Standard_Integer i;
Standard_Integer aCurI = 1;
Standard_Real aTolConf = Precision::Confusion();
#include <OSD.hxx>
const Standard_CString MAGICNUMBER = "BINFILE";
-const Standard_CString ENDOFNORMALEXTENDEDSECTION = "BEGIN_REF_SECTION";
-const Standard_Integer SIZEOFNORMALEXTENDEDSECTION = 16;
//=======================================================================
//function : FSD_BinaryFile
//#endif
const Standard_CString MAGICNUMBER = "CMPFILE";
-const Standard_CString ENDOFNORMALEXTENDEDSECTION = "BEGIN_REF_SECTION";
-const Standard_Integer SIZEOFNORMALEXTENDEDSECTION = 16;
//=======================================================================
//function : FSD_CmpFile
}
FlushEndOfLine();
-#if 0
- char c = '\0';
- Standard_ExtCharacter i = 0,j,count = 0;
- Standard_Boolean fin = Standard_False;
- Standard_CString tg = ENDOFNORMALEXTENDEDSECTION;
-
- buffer.Clear();
-
- while (!fin && !IsEnd()) {
- myStream.get(c);
-
- if (c == tg[count]) count++;
- else count = 0;
- if (count < SIZEOFNORMALEXTENDEDSECTION) {
- i = 0; j = 0;
- i += (Standard_ExtCharacter)c;
- if (c == '\0') fin = Standard_True;
- i = (i << 8);
-
- myStream.get(c);
- if (c == tg[count]) count++;
- else count = 0;
- if (count < SIZEOFNORMALEXTENDEDSECTION) {
- if ( c != '\r') {
- j += (Standard_ExtCharacter)c;
- if (c != '\n' && c != '\r') {
- fin = Standard_False;
- i |= (0x00FF & j);
- buffer += (Standard_ExtCharacter)i;
- }
-
- }
- }
- else {
- Storage_StreamExtCharParityError::Raise();
- }
- }
- else {
- Storage_StreamExtCharParityError::Raise();
- }
- }
-#endif
-
}
//=======================================================================
#ifndef Graphic3d_TRANS_MODE_FLAGS_HXX
#define Graphic3d_TRANS_MODE_FLAGS_HXX
-Standard_EXPORT typedef Standard_Integer Graphic3d_TransModeFlags;
+typedef Standard_Integer Graphic3d_TransModeFlags;
enum {
Graphic3d_TMF_None = 0x0000,
}
static const Standard_Size NEIGHBOR_PIXELS_NB = 8;
- struct
+ static struct
{
Standard_Integer row_inc;
Standard_Integer col_inc;
&& aCol < theData.SizeY();
}
}
- static const NEIGHBOR_PIXELS[NEIGHBOR_PIXELS_NB] =
+ const NEIGHBOR_PIXELS[NEIGHBOR_PIXELS_NB] =
{
{-1, -1}, {-1, 0}, {-1, 1},
{ 0, -1}, { 0, 1},
Quantity_Parameter (Standard_Real (aPixel)),
Quantity_Parameter (Standard_Real (aPixel)),
Quantity_TOC_RGB);
- break;
}
case ImgRGBAF:
{
else {
return 2;
}
- break;
}
default:
break;
const int ENTI_LT = 2;
const int ENTI_GT = 3;
const int ENTI_QUOT = 4;
-const int ENTI_APOS = 5;
+//const int ENTI_APOS = 5;
struct entityRef {
const char * name;
//#include <ctype.h>
const int XML_MIN_BUFFER = 10;
-const int MAX_ATTRIBUTES = 512;
const int FILE_NONVALUE = -1;
typedef enum {
static const LXMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull };
static const LXMLCh gEndElement1[]= { chForwardSlash, chNull };
-static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull };
-static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
+//static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull };
+//static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
static const LXMLCh gXMLDecl1[] =
{ chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l
, chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i
, chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual
, chDoubleQuote, chNull
};
+/*
static const LXMLCh gXMLDecl3[] =
{ chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a
, chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o
, chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull
};
+*/
static const LXMLCh gXMLDecl4[] =
{ chDoubleQuote, chQuestion, chCloseAngle
, chLF, chNull
{ chOpenAngle, chBang, chDash, chDash, chNull };
static const LXMLCh gEndComment[] =
{ chDash, chDash, chCloseAngle, chNull };
+/*
static const LXMLCh gStartDoctype[] =
{ chOpenAngle, chBang, chLatin_D, chLatin_O, chLatin_C, chLatin_T,
chLatin_Y, chLatin_P, chLatin_E, chSpace, chNull
{ chLatin_N, chLatin_D, chLatin_A, chLatin_T, chLatin_A,
chSpace, chDoubleQuote, chNull
};
+*/
static LXMLCh * getEncodingName (const LXMLCh * theEncodingName)
{
#ifndef MeshVS_BUILDERPRIORITY_HXX
#define MeshVS_BUILDERPRIORITY_HXX
-Standard_EXPORT typedef Standard_Integer MeshVS_BuilderPriority;
+typedef Standard_Integer MeshVS_BuilderPriority;
enum
{
#ifndef MeshVS_DISPLAY_MODE_FLAGS_HXX
#define MeshVS_DISPLAY_MODE_FLAGS_HXX
-Standard_EXPORT typedef Standard_Integer MeshVS_DisplayModeFlags;
+typedef Standard_Integer MeshVS_DisplayModeFlags;
enum
{
#ifndef MeshVS_ENTITYTYPEHXX
#define MeshVS_ENTITYTYPEHXX
-Standard_EXPORT typedef enum
+typedef enum
{
MeshVS_ET_NONE = 0x00,
MeshVS_ET_Node = 0x01,
MeshVS_ET_Element = MeshVS_ET_0D | MeshVS_ET_Link | MeshVS_ET_Face | MeshVS_ET_Volume,
MeshVS_ET_All = MeshVS_ET_Element | MeshVS_ET_Node
-
-} MeshVS_EntityType;
+} MeshVS_EntityType;
#endif
#ifndef MeshVS_SELECTION_MODE_FLAGS_HXX
#define MeshVS_SELECTION_MODE_FLAGS_HXX
-Standard_EXPORT typedef enum
+typedef enum
{
MeshVS_SMF_Mesh = 0x0000,
MeshVS_SMF_Node = 0x0001,
MeshVS_SMF_Group = 0x0100
-
-} MeshVS_SelectionModeFlags;
+} MeshVS_SelectionModeFlags;
#endif
#include <Quantity_Color.hxx>
-Standard_EXPORT typedef struct {
+typedef struct {
unsigned int r1 : 8;
unsigned int g1 : 8;
unsigned int b1 : 8;
unsigned int r2 : 8;
unsigned int g2 : 8;
unsigned int b2 : 8;
-} MeshVS_TwoColors;
+} MeshVS_TwoColors;
Standard_EXPORT Standard_Integer HashCode ( const MeshVS_TwoColors& theKey,
};
-#define COMM_ERR_TABLE_SIZE ( sizeof ( commErrorTable ) / sizeof ( commErrorTable[ 0 ] ) )
+#define COMM_ERR_TABLE_SIZE (int)(sizeof(commErrorTable) / sizeof(commErrorTable[0]))
static ERROR_TABLE dirErrorTable[] = {
};
-#define DIR_ERR_TABLE_SIZE ( sizeof ( dirErrorTable ) / sizeof ( dirErrorTable[ 0 ] ) )
+#define DIR_ERR_TABLE_SIZE (int)(sizeof(dirErrorTable) / sizeof(dirErrorTable[0]))
static ERROR_TABLE fileErrorTable[] = {
};
-#define FILE_NODE_ERR_TABLE_SIZE ( sizeof ( fileNodeErrorTable ) / \
- sizeof ( fileNodeErrorTable[ 0 ] ) \
- )
+#define FILE_NODE_ERR_TABLE_SIZE (int)(sizeof(fileNodeErrorTable) / sizeof(fileNodeErrorTable[0]))
static Standard_Integer _get_comm_error ( DWORD );
Standard_EXPORT void OpenGl_Multiplymat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a, const OpenGl_Matrix *b);
Standard_EXPORT void OpenGl_Transposemat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a);
-const static OpenGl_Matrix OpenGl_IdentityMatrix =
+static const OpenGl_Matrix OpenGl_IdentityMatrix =
{
// mat[4][4]
{ { 1.0f, 0.0f, 0.0f, 0.0f },
{
if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex )
Standard_OutOfRange::Raise();
- for(Standard_Integer i = FromIndex-1, count = 0; i <= ToIndex-1; i++)
+ for(Standard_Integer i = FromIndex-1, icount = 0; i <= ToIndex-1; i++)
if(Data(i) == C) {
- count++;
- if ( count == N ) return (i+1);
+ icount++;
+ if ( icount == N ) return (i+1);
}
return 0 ;
}
}
}
break;
- break;
}
case 15 : {
*tmpRA = *tmpPA; tmpRA++; tmpPA++;
#include <BRepExtrema_DistShapeShape.hxx>
#include <BRepTools.hxx>
-Standard_Boolean static OCC23774Test(const TopoDS_Face& grossPlateFace, const TopoDS_Shape& originalWire, Draw_Interpretor& di)
+static Standard_Boolean OCC23774Test(const TopoDS_Face& grossPlateFace, const TopoDS_Shape& originalWire, Draw_Interpretor& di)
{
BRepExtrema_DistShapeShape distShapeShape(grossPlateFace,originalWire,Extrema_ExtFlag_MIN);
if(!distShapeShape.IsDone()) {
/* GESTION DES RECORDS */
/* ENREGISTRER UN RECORD (deja pret) */
-void static rec_new(struct rec* newrec)
+static void rec_new(struct rec* newrec)
/* nouveau record a enregistrer */
{
nbrec ++ ;
//purpose : TNaming
//=======================================================================
-void static SubstituteShape(const TopoDS_Shape& oldShape,
+static void SubstituteShape(const TopoDS_Shape& oldShape,
const TopoDS_Shape& newShape,
TNaming_DataMapOfShapePtrRefShape& amap)
{
for (; itLab.More(); itLab.Next()) {
if (itLab.OldShape().IsSame(S)) {
return Standard_False;
- break;
}
if (itLab.NewShape().IsSame(S)) {
return Standard_True;
- break;
}
}
#ifdef DEB
#include <gp_Trsf.hxx>
#include <TopLoc_TrsfPtr.hxx>
-const static gp_Trsf TheIdentity;
+static const gp_Trsf TheIdentity;
static Standard_Boolean IsInternalIdentity(const TopLoc_Location& loc)
switch (ires) {
case RESNULL: {
continue;
- break;
}
case RESSHAPE12 : {
aMapOfCommonOfCouple.Add(sol1);
aMapOfCommonOfCouple.Add(sol2);
continue;
- break;
}
case RESSHAPE1 : {
aMapOfCommonOfCouple.Add(sol1);
continue;
- break;
}
case RESSHAPE2 : {
aMapOfCommonOfCouple.Add(sol2);