/usr/include/oce/Graphic3d_Vertex.hxx is in liboce-visualization-dev 0.15-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | // Created on: 2012-06-20
// Created by: Sergey ZERCHANINOV
// Copyright (c) 2011-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and / or modify it
// under the terms of the GNU Lesser General Public version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _Graphic3d_Vertex_HeaderFile
#define _Graphic3d_Vertex_HeaderFile
#include <Standard_Macro.hxx>
#include <InterfaceGraphic_telem.hxx>
#include <Standard_ShortReal.hxx>
#include <Standard_Real.hxx>
//! This class represents a graphical 3D point. <br>
class Graphic3d_Vertex : public TEL_POINT
{
public:
//! Creates a point with 0.0, 0.0, 0.0 coordinates. <br>
Graphic3d_Vertex()
{ SetCoord(0.f,0.f,0.f); }
//! Creates a point with coordinates identical to <APoint>. <br>
Graphic3d_Vertex(const Graphic3d_Vertex& APoint)
{ SetCoord(APoint.X(),APoint.Y(),APoint.Z()); }
//! Creates a point with <AX>, <AY> and <AZ> coordinates. <br>
Graphic3d_Vertex(const Standard_ShortReal AX,const Standard_ShortReal AY,const Standard_ShortReal AZ)
{ SetCoord(AX,AY,AZ); }
//! Creates a point with <AX>, <AY> and <AZ> coordinates. <br>
Graphic3d_Vertex(const Standard_Real AX,const Standard_Real AY,const Standard_Real AZ)
{ SetCoord(AX,AY,AZ); }
//! Modifies the coordinates of the point <me>. <br>
void SetCoord(const Standard_ShortReal AX,const Standard_ShortReal AY,const Standard_ShortReal AZ)
{ xyz[0] = AX, xyz[1] = AY, xyz[2] = AZ; }
//! Modifies the coordinates of the point <me>. <br>
void SetCoord(const Standard_Real AX,const Standard_Real AY,const Standard_Real AZ)
{ xyz[0] = Standard_ShortReal(AX), xyz[1] = Standard_ShortReal(AY), xyz[2] = Standard_ShortReal(AZ); }
//! Returns the coordinates of the point <me>. <br>
void Coord(Standard_ShortReal& AX,Standard_ShortReal& AY,Standard_ShortReal& AZ) const
{ AX = xyz[0], AY = xyz[1], AZ = xyz[2]; }
//! Returns the coordinates of the point <me>. <br>
void Coord(Standard_Real& AX,Standard_Real& AY,Standard_Real& AZ) const
{ AX = xyz[0], AY = xyz[1], AZ = xyz[2]; }
//! Returns the X coordinates of the point <me>. <br>
Standard_ShortReal X() const { return xyz[0]; }
//! Returns the Y coordinate of the point <me>. <br>
Standard_ShortReal Y() const { return xyz[1]; }
//! Returns the Z coordinate of the point <me>. <br>
Standard_ShortReal Z() const { return xyz[2]; }
//! Returns the distance between <AV1> and <AV2>. <br>
Standard_EXPORT Standard_ShortReal Distance(const Graphic3d_Vertex& AOther) const;
};
#endif
|