You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.9 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2015 Cirilo Bernardo <cirilo.bernardo@gmail.com>
  5. * Copyright (C) 2015 Mario Luzeiro <mrluzeiro@ua.pt>
  6. * Copyright (C) 2011 Wayne Stambaugh <stambaughw@verizon.net>
  7. * Copyright (C) 2004 Jean-Pierre Charras, jp.charras at wanadoo.fr
  8. * Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version 2
  13. * of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, you may find one here:
  22. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  23. * or you may search the http://www.gnu.org website for the version 2 license,
  24. * or you may write to the Free Software Foundation, Inc.,
  25. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  26. */
  27. /**
  28. * @file 3d_info.h
  29. * defines the basic data associated with a single 3D model.
  30. */
  31. #ifndef INFO_3D_H
  32. #define INFO_3D_H
  33. #include <wx/string.h>
  34. #include <plugins/3dapi/sg_base.h>
  35. class FP_3DMODEL;
  36. struct S3D_INFO
  37. {
  38. S3D_INFO();
  39. S3D_INFO( const FP_3DMODEL& aModel );
  40. SGPOINT m_Scale; ///< scaling factors for the 3D footprint shape
  41. SGPOINT m_Rotation; ///< an X,Y,Z rotation (unit = degrees) for the 3D shape
  42. SGPOINT m_Offset; ///< an offset (unit = inch) for the 3D shape
  43. wxString m_Filename; ///< The 3D shape filename in 3D library
  44. };
  45. #endif // INFO_3D_H