1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0023872: Remove outdated classes OpenGl_Polygon and OpenGl_Polyline

This commit is contained in:
kgv
2013-03-30 19:31:06 +04:00
parent 471ce7366b
commit 27eed93740
13 changed files with 89 additions and 1545 deletions

View File

@@ -1,8 +1,6 @@
InterfaceGraphic.hxx
InterfaceGraphic_Aspect.hxx
InterfaceGraphic_Graphic3d.hxx
InterfaceGraphic_Labels.hxx
InterfaceGraphic_Portability.hxx
InterfaceGraphic_Visual3d.hxx
InterfaceGraphic_WNT.hxx
InterfaceGraphic_X11.hxx

View File

@@ -1,96 +0,0 @@
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2012 OPEN CASCADE SAS
//
// The content of this file is subject to the Open CASCADE Technology Public
// License Version 6.5 (the "License"). You may not use the content of this file
// except in compliance with the License. Please obtain a copy of the License
// at http://www.opencascade.org and read it completely before using this file.
//
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
//
// The Original Code and all software distributed under the License is
// distributed on an "AS IS" basis, without warranty of any kind, and the
// Initial Developer hereby disclaims all such warranties, including without
// limitation, any warranties of merchantability, fitness for a particular
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
#ifndef LABELS_HXX_INCLUDED
#define LABELS_HXX_INCLUDED
/* gestion des labels */
/* structure, begin */
#define Structure_LABBegin 0
/* structure, transformation */
#define Structure_LABTransformation 1
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
/*#define Structure_LABTransPersistenceFlag 2*/
#define Structure_LABTransPersistence 2
/*#define Structure_LABTransPersistencePoint 3*/
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
/* structure, attributes */
#define Structure_LABContextLine 11
#define Structure_LABContextFillArea 12
#define Structure_LABContextMarker 13
#define Structure_LABContextText 14
/* structure, highlight, visibility, pick */
#define Structure_LABHighlight 21
#define Structure_LABVisibility 22
#define Structure_LABPick 23
#define Structure_LABNameSet 31
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
/*#define Structure_LABTransPersistence 32*/
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
/* structure, hierarchy */
#define Structure_LABConnect 33
/* view, index */
#define View_LABViewIndex 10
/* view, context */
#define View_LABViewContext 15
/* view, hlhsr */
#define View_LABHlhsr 20
/* view, light source management */
#define View_LABLight 25
/* view, clip plane management */
#define View_LABPlane 30
/* view, aliasing management */
#define View_LABAliasing 35
/* view, depth cueing management */
#define View_LABDepthCueing 40
/* view, priority management */
#define View_LABPriority10 100
#define View_LABPriority09 99
#define View_LABPriority08 98
#define View_LABPriority07 97
#define View_LABPriority06 96
#define View_LABPriority05 95
#define View_LABPriority04 94
#define View_LABPriority03 93
#define View_LABPriority02 92
#define View_LABPriority01 91
#define View_LABPriority00 90
/* view, end */
#define View_LABEnd 200
/* view, transient emulation */
#define View_LABImmediat1 301
#define View_LABImmediat2 302
#endif

View File

@@ -1,240 +0,0 @@
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2012 OPEN CASCADE SAS
//
// The content of this file is subject to the Open CASCADE Technology Public
// License Version 6.5 (the "License"). You may not use the content of this file
// except in compliance with the License. Please obtain a copy of the License
// at http://www.opencascade.org and read it completely before using this file.
//
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
//
// The Original Code and all software distributed under the License is
// distributed on an "AS IS" basis, without warranty of any kind, and the
// Initial Developer hereby disclaims all such warranties, including without
// limitation, any warranties of merchantability, fitness for a particular
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
#ifndef InterfaceGraphic_PortabilityHeader
#define InterfaceGraphic_PortabilityHeader
/* structures pour portabilite des differents Phigs */
/* SUNPHIGS, DECPHIGS, TGSPHIGS, G5GPHIGS, PEX */
/***********************************************************************/
/******************************** CONST ********************************/
/***********************************************************************/
#define CALL_DEF_ENABLE_MODE_PAINTERS 0
#define CALL_DEF_ENABLE_MODE_ZBUFFER 1
#define CALL_DEF_DISABLE_MODE_ZBUFFER -1
#define CALL_DEF_ENABLE_ZBUFFER 2
#define CALL_DEF_DISABLE_ZBUFFER -2
#define CALL_DEF_TEST_CALL -99999
/***********************************************************************/
/********************************* DATA ********************************/
/***********************************************************************/
typedef struct {
int size;
char *data;
} CALL_DEF_DATA;
/***********************************************************************/
/********************************** 2D *********************************/
/***********************************************************************/
typedef struct {
float x;
float y;
} CALL_DEF_POINT2;
typedef struct {
float x;
float y;
} CALL_DEF_VECTOR2;
/***********************************************************************/
/********************************** 3D *********************************/
/***********************************************************************/
typedef struct {
float x;
float y;
float z;
} CALL_DEF_POINT3;
typedef struct {
float x;
float y;
float z;
} CALL_DEF_VECTOR3;
/***********************************************************************/
/********************************* VIEW ********************************/
/***********************************************************************/
typedef float CALL_DEF_MATRIX3[4][4];
typedef struct {
float x_min;
float x_max;
float y_min;
float y_max;
} CALL_DEF_LIMIT;
typedef struct {
float x_min;
float x_max;
float y_min;
float y_max;
float z_min;
float z_max;
} CALL_DEF_LIMIT3;
typedef struct {
CALL_DEF_MATRIX3 ori_matrix;
CALL_DEF_MATRIX3 map_matrix;
CALL_DEF_LIMIT3 clip_limit;
int xy_clip;
int back_clip;
int front_clip;
#ifdef TGSPHIGS
int opacity;
int back_colr;
int outline;
int outline_colr;
int temporary;
int active;
#endif
} CALL_DEF_VIEWREP3;
typedef struct {
CALL_DEF_LIMIT win;
CALL_DEF_LIMIT3 proj_vp;
int proj_type;
CALL_DEF_POINT3 proj_ref_point;
float view_plane;
#if defined (SUNPHIGS) || defined (TGSPHIGS) || defined (G5GPHIGS) || defined (HPPHIGS) || defined (PEX5)
float back_plane;
float front_plane;
#endif
#ifdef DECPHIGS
float front_plane;
float back_plane;
#endif
} CALL_DEF_VIEWMAP3;
/***********************************************************************/
/********************************* LIGHT *******************************/
/***********************************************************************/
typedef struct {
int num_ints;
int *ints;
} CALL_DEF_INTLIST;
typedef struct {
float r;
float g;
float b;
} CALL_DEF_RGB;
typedef struct {
int colr_type;
CALL_DEF_RGB colr;
} CALL_DEF_AMBLIGHTSRCREC;
typedef struct {
int colr_type;
CALL_DEF_RGB colr;
CALL_DEF_VECTOR3 dir;
} CALL_DEF_DIRLIGHTSRCREC;
typedef struct {
int colr_type;
CALL_DEF_RGB colr;
CALL_DEF_POINT3 pos;
float coef[2];
} CALL_DEF_POSLIGHTSRCREC;
typedef struct {
int colr_type;
CALL_DEF_RGB colr;
CALL_DEF_POINT3 pos;
CALL_DEF_VECTOR3 dir;
float exp;
float coef[2];
float angle;
} CALL_DEF_SPOTLIGHTSRCREC;
typedef union {
CALL_DEF_AMBLIGHTSRCREC ambient;
CALL_DEF_DIRLIGHTSRCREC directional;
CALL_DEF_POSLIGHTSRCREC positional;
CALL_DEF_SPOTLIGHTSRCREC spot;
} CALL_DEF_LIGHTSRCREC;
typedef struct {
int type;
CALL_DEF_LIGHTSRCREC rec;
} CALL_DEF_LIGHTSRCBUNDLE;
/***********************************************************************/
/**************************** CLIPPING PLANE ***************************/
/***********************************************************************/
typedef struct {
float a;
float b;
float c;
float d;
CALL_DEF_POINT3 point;
CALL_DEF_VECTOR3 norm;
} CALL_DEF_HALF_SPACE;
typedef struct {
int num_half_spaces;
CALL_DEF_HALF_SPACE *half_spaces;
} CALL_DEF_HALF_SPACE_LIST;
typedef struct {
int op;
CALL_DEF_HALF_SPACE_LIST half_spaces;
} CALL_DEF_PLANEBUNDLE;
/***********************************************************************/
/******************************** SCREEN *******************************/
/***********************************************************************/
typedef struct {
int size_x;
int size_y;
} CALL_DEF_INT_SIZE;
typedef struct {
float size_x;
float size_y;
} CALL_DEF_FLOAT_SIZE;
typedef struct {
int dc_units;
CALL_DEF_FLOAT_SIZE size_dc;
CALL_DEF_INT_SIZE size_raster;
} CALL_DEF_DISP_SPACE_SIZE;
/***********************************************************************/
/********************************* TEXT ********************************/
/***********************************************************************/
typedef struct {
int horizontal;
int vertical;
} CALL_DEF_TEXT_ALIGN;
#endif /* InterfaceGraphic_PortabilityHeader */

View File

@@ -16,20 +16,8 @@
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
/*
File: InterfaceGraphic_telem.h
16/06/2000 : ATS : G005 : Copied from OpenGl_telem.h to support required
for InterfaceGraphic_Parray.hxx definitions
22/03/2004 : SAN : OCC4895 High-level interface for controlling polygon offsets
20/05/2005 : SAN : OCC8854 Number of color components increased to include alpha value
*/
#ifndef INTERFACEGRAPHIC_TELEM_H
#define INTERFACEGRAPHIC_TELEM_H
#ifndef INTERFACEGRAPHIC_TELEM_H
#define INTERFACEGRAPHIC_TELEM_H
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
@@ -60,38 +48,6 @@ struct TEL_COLOUR
};
typedef TEL_COLOUR* tel_colour;
struct TEL_POINT_DATA
{
int num;
TEL_POINT* data;
DEFINE_STANDARD_ALLOC
};
typedef TEL_POINT_DATA* tel_point_data;
struct TEL_TINT_DATA
{
int num;
int* data;
DEFINE_STANDARD_ALLOC
};
typedef TEL_TINT_DATA* tel_tint_data;
struct TEL_MATRIX3_DATA
{
TComposeType mode;
Tmatrix3 mat;
DEFINE_STANDARD_ALLOC
};
typedef TEL_MATRIX3_DATA* tel_matrix3_data;
struct TEL_ALIGN_DATA
{
Tint Hmode;
Tint Vmode;
DEFINE_STANDARD_ALLOC
};
typedef TEL_ALIGN_DATA* tel_align_data;
typedef enum
{
TLightAmbient,
@@ -100,31 +56,6 @@ typedef enum
TLightSpot
} TLightType;
typedef enum
{
TelHLColour,
TelHLForcedColour
} THighlightType;
typedef enum
{
TelDCSuppressed,
TelDCAllowed
} TDepthCueType;
/* Proprietes materiels */
struct TEL_SURF_PROP
{
float amb, diff, spec, emsv;
float trans, shine;
float env_reflexion;
int isamb, isdiff, isspec, isemsv;
int isphysic;
TEL_COLOUR speccol, difcol, ambcol, emscol, matcol;
DEFINE_STANDARD_ALLOC
};
typedef TEL_SURF_PROP* tel_surf_prop;
typedef enum
{
TelCullNone,
@@ -132,23 +63,6 @@ typedef enum
TelCullBack
} TelCullMode;
/* Interior Styles */
#define TSM_SOLID 1
#define TSM_HOLLOW 2
#define TSM_EMPTY 3
#define TSM_HATCH 4
#define TSM_POINT 5
#define TSM_HIDDENLINE 6
/* Standard Line Styles */
#define TEL_LS_SOLID 0
#define TEL_LS_DOT 2
#define TEL_LS_DASH_DOT 3
#define TEL_LS_DASH 1
#define TEL_LS_DOUBLE_DOT_DASH 4
#define TEL_LS_USER_DEF_START 10
/* Standard Hatch Styles */
#define TEL_HS_SOLID 0
#define TEL_HS_CROSS 1
@@ -166,64 +80,9 @@ typedef enum
#define TEL_HS_USER_DEF_START 15
#define TEL_SHAPE_UNKNOWN 1
#define TEL_SHAPE_COMPLEX 2
#define TEL_SHAPE_CONCAVE 3
#define TEL_SHAPE_CONVEX 4
/* Key ids for area type primitives */
#define NUM_FACETS_ID 1 /* key.data.ldata contains no. of facets */
#define FNORMALS_ID 2 /* key.data.pdata is array of TEL_POINT */
#define FACET_COLOUR_VALS_ID 3 /* key.data.pdata is array of TSM_COLOUR */
#define VERTICES_ID 4 /* key.data.pdata is array of TEL_POINT */
#define VERTEX_COLOUR_VALS_ID 5 /* key.data.pdata is array of TSM_COLOUR */
#define VNORMALS_ID 6 /* key.data.pdata is array of TEL_POINT */
#define NUM_VERTICES_ID 7 /* key.data.ldata is num of vertices */
#define SHAPE_FLAG_ID 8 /* key.data.ldata is shape flag */
#define EDGE_DATA_ID 9 /* key.data.pdata is edge data (Tint*) */
#define CONNECTIVITY_ID 10 /* key.data.pdata is conn data (Tint*) */
#define BOUNDS_DATA_ID 11 /* key.data.pdata is bounds data (Tint*) */
#define NUM_LINES_ID 12 /* key.data.ldata is number of lines */
#define NUM_ROWS_ID 13 /* key.data.ldata is number of rows */
#define NUM_COLUMNS_ID 14 /* key.data.ldata is number of columns */
#define VTEXTURECOORD_ID 15 /* key.data.pdata is array of TEL_TEXTURE_COORD */
#define PARRAY_ID 16 /* key.data.pdata is a primitive array */
/* Key ids for text primitives */
#define TEXT_ATTACH_PT_ID 1 /* key.data.pdata contains tel_point */
#define TEXT_STRING_ID 2 /* key.data.pdata contains Tchar * */
/* Key ids for curve primitives */
#define CURVE_TYPE_ID 1 /* key.data.ldata is curve type */
/* TelCurveType :
* Bezier
* Cardinal
* BSpline
*/
#define CURVE_NUM_POINTS_ID 2 /* key.data.ldata is num of points */
#define CURVE_VERTICES_ID 3 /* key.data.pdata is array of TEL_POINT */
/* Polymarker Types */
#define TEL_PM_PLUS 0
#define TEL_PM_STAR 1
#define TEL_PM_CROSS 2
#define TEL_PM_CIRC 3
#define TEL_PM_DOT 4
#define TEL_PM_USERDEFINED 5
#define TEL_PM_USER_DEF_START 7
#define TEL_SD_SHADING 0
#define TEL_SD_TEXTURE 1
#define TEL_SM_FLAT 1
#define TEL_SM_GOURAUD 2
#define TEL_POLYMARKER_FONT (short)1
/* Standard Lighting Models */
#define TEL_FRONT_BACK_LM 1
@@ -231,46 +90,6 @@ typedef enum
#define TEL_FRONT_MATERIAL 1
#define TEL_BACK_MATERIAL 2
/* facet flags */
#define TEL_FAFLAG_NONE 1
#define TEL_FAFLAG_NORMAL 2
#define TEL_FAFLAG_COLOUR 3
#define TEL_FAFLAG_COLOURNORMAL 4
/* internal use */
#define TEL_FA_NONE TEL_FAFLAG_NONE
#define TEL_FA_NORMAL TEL_FAFLAG_NORMAL
/* vertex flags */
#define TEL_VTFLAG_NONE 1
#define TEL_VTFLAG_NORMAL 2
#define TEL_VTFLAG_COLOUR 3
#define TEL_VTFLAG_COLOURNORMAL 4
/* internal use */
#define TEL_VT_NONE TEL_VTFLAG_NONE
#define TEL_VT_NORMAL TEL_VTFLAG_NORMAL
/* Defbasis identifier */
#define TEL_BEZIER 1
#define TEL_CARDINAL 2
#define TEL_BSPLINE 3
typedef enum
{
TelBezierCurve = TEL_BEZIER,
TelCardinalCurve = TEL_CARDINAL,
TelBSplineCurve = TEL_BSPLINE
} TelCurveType;
typedef enum
{
TelHLHSRNone,
TelHLHSRZBuff
} TelHLHSRId;
/* OCC4895 SAN 22/03/04 High-level interface for controlling polygon offsets */
struct TEL_POFFSET_PARAM
{
int mode;
@@ -279,9 +98,7 @@ struct TEL_POFFSET_PARAM
DEFINE_STANDARD_ALLOC
};
typedef TEL_POFFSET_PARAM* tel_poffset_param;
/* OCC4895 SAN 22/03/04 High-level interface for controlling polygon offsets */
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
struct TEL_TRANSFORM_PERSISTENCE
{
int mode;
@@ -291,6 +108,5 @@ struct TEL_TRANSFORM_PERSISTENCE
DEFINE_STANDARD_ALLOC
};
typedef TEL_TRANSFORM_PERSISTENCE* tel_transform_persistence;
/* ABD 29/10/04 Transform Persistence of Presentation( pan, zoom, rotate ) */
#endif /* INTERFACEGRAPHIC_TELEM_H */

View File

@@ -16,20 +16,11 @@
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
/*
File InterfaceGraphic_tgl_all.h
16/06/2000 : ATS : G005 : Copied from OpenGl_tgl_all.h to support required
for InterfaceGraphic_Parray.hxx definitions
23-12-02 : SAV ; Added Tuint type
*/
#ifndef INTERFACEGRAPHIC_TGL_ALL_H
#define INTERFACEGRAPHIC_TGL_ALL_H
typedef int Tint;
typedef float Tfloat;
/* PCD 04/07/07 */
typedef double Tdouble;
/* Tchar is treated as a signed char in visualization code,
therefore it should be made signed explicitly, as on Linux
@@ -40,34 +31,9 @@ typedef unsigned int Tuint;
/* szv: Techar is an Extended character */
typedef unsigned short Techar;
#define TGL_SP 1
#define TGL_DP 0
#if TGL_DP
#define v3f v3d
#define c3f c3d
#define n3f n3d
#endif
typedef enum
{
TFailure = -1,
TSuccess
} TStatus;
#define TOn 1
#define TOff 0
#define TDone 1
#define TNotDone 0
typedef Tfloat Tmatrix3[4][4];
typedef enum
{
TPreConcatenate,
TPostConcatenate,
TReplace
} TComposeType;
#endif /* INTERFACEGRAPHIC_TGL_ALL_H */