Adjusting test cases at current state of OCCT master
[occt.git] / src / InterfaceGraphic / InterfaceGraphic_Visual3d.hxx
CommitLineData
b311480e 1// Copyright (c) 1991-1999 Matra Datavision
973c2be1 2// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
7fd59977 15#ifndef InterfaceGraphic_Visual3dHeader
16#define InterfaceGraphic_Visual3dHeader
17
7fd59977 18#include <InterfaceGraphic_Aspect.hxx>
bf75be98 19#include <InterfaceGraphic_Graphic3d.hxx>
7fd59977 20#include <Aspect_RenderingContext.hxx>
21#include <Aspect_GraphicCallbackProc.hxx>
bf75be98 22#include <Standard_Transient.hxx>
7fd59977 23
7fd59977 24typedef float CALL_DEF_MATRIX4X4[4][4];
25
26/* SOMMET */
27
28typedef struct {
29
30 float x, y, z;
31
32} CALL_DEF_VERTEX;
33
7fd59977 34/* ORIENTATION */
35
36typedef struct {
37
38 CALL_DEF_VERTEX ViewReferencePoint;
39 CALL_DEF_VERTEX ViewReferencePlane;
40 CALL_DEF_VERTEX ViewReferenceUp;
41 float ViewScaleX;
42 float ViewScaleY;
43 float ViewScaleZ;
44
7fd59977 45 float ModelViewMatrix[4][4];
46
498ce76b 47 unsigned IsCustomMatrix;
48
7fd59977 49} CALL_DEF_VIEWORIENTATION;
50
51
52/* MAPPING */
53
54typedef struct {
55
56 int Projection;
57
58 CALL_DEF_VERTEX ProjectionReferencePoint;
59
60 float ViewPlaneDistance;
61 float BackPlaneDistance;
62 float FrontPlaneDistance;
63
64 struct {
65 float um, vm, uM, vM;
66 } WindowLimit;
67
7fd59977 68 float ProjectionMatrix[4][4];
69
498ce76b 70 unsigned IsCustomMatrix;
71
7fd59977 72} CALL_DEF_VIEWMAPPING;
73
7fd59977 74#endif /* InterfaceGraphic_Visual3dHeader */