/******************************************************************************** * * * O p e n G L O b j e c t * * * ********************************************************************************* * Copyright (C) 1998,2024 by Jeroen van der Zijp. All Rights Reserved. * ********************************************************************************* * This library is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public License * * along with this program. If not, see * ********************************************************************************/ #ifndef FXGLLINE_H #define FXGLLINE_H /// OpenGL Line Object class FXAPI FXGLLine : public FXGLObject { FXDECLARE(FXGLLine) public: FXGLPoint fm,to; public: /// Default constructor FXGLLine(); /// Copy constructor FXGLLine(const FXGLLine& orig); /// Construct with specified endpoints FXGLLine(FXfloat fx,FXfloat fy,FXfloat fz,FXfloat tx,FXfloat ty,FXfloat tz); /// Called by the viewer to get bounds for this object virtual void bounds(FXRangef& box); /// Draw this object in a viewer virtual void draw(FXGLViewer* viewer); /// Copy this object virtual FXGLObject* copy(); /// Draw this object for hit-testing purposes virtual void hit(FXGLViewer* viewer); /// Save to a stream virtual void save(FXStream& store) const; /// Load from a stream virtual void load(FXStream& store); }; #endif