1 // Copyright (C) 2014-2015 EDF-R&D
2 // This library is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU Lesser General Public
4 // License as published by the Free Software Foundation; either
5 // version 2.1 of the License, or (at your option) any later version.
7 // This library is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 // Lesser General Public License for more details.
12 // You should have received a copy of the GNU Lesser General Public
13 // License along with this library; if not, write to the Free Software
14 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef HYDROGUI_IMAGEPRS_H
20 #define HYDROGUI_IMAGEPRS_H
22 #include <AIS_InteractiveObject.hxx>
24 #include <Image_PixMap.hxx>
29 class HYDROGUI_ImagePrs;
31 DEFINE_STANDARD_HANDLE(HYDROGUI_ImagePrs, AIS_InteractiveObject)
33 class HYDROGUI_ImagePrs : public AIS_InteractiveObject
37 HYDROGUI_ImagePrs( const Handle(Image_PixMap)&, const QPolygonF& );
38 virtual ~HYDROGUI_ImagePrs();
40 QPolygonF GetContour() const;
41 void SetContour( const QPolygonF& );
43 Handle(Image_PixMap) GetImage() const;
44 void SetImage( const Handle(Image_PixMap)& );
46 virtual void Compute( const Handle(PrsMgr_PresentationManager3d)&,
47 const Handle(Prs3d_Presentation)&, const Standard_Integer = 0 );
48 virtual void ComputeSelection( const Handle(SelectMgr_Selection)&, const Standard_Integer );
50 DEFINE_STANDARD_RTTI(HYDROGUI_ImagePrs)
53 gp_Pnt convert( const QPointF& ) const;
56 Handle(Image_PixMap) myImage;