00001 //------------------------------------------------------------------------------ 00002 // This file is part of the OpenStructure project <www.openstructure.org> 00003 // 00004 // Copyright (C) 2008-2010 by the OpenStructure authors 00005 // 00006 // This library is free software; you can redistribute it and/or modify it under 00007 // the terms of the GNU Lesser General Public License as published by the Free 00008 // Software Foundation; either version 3.0 of the License, or (at your option) 00009 // any later version. 00010 // This library is distributed in the hope that it will be useful, but WITHOUT 00011 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00012 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00013 // details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with this library; if not, write to the Free Software Foundation, Inc., 00017 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 //------------------------------------------------------------------------------ 00019 #ifndef OST_XCS_EDITOR_HE 00020 #define OST_XCS_EDITOR_HE 00021 /* 00022 Author: Marco Biasini 00023 */ 00024 00025 #include <ost/mol/module_config.hh> 00026 #include <ost/geom/geom.hh> 00027 #include <ost/mol/handle_type_fw.hh> 00028 00029 #include "editor_base.hh" 00030 00031 namespace ost { namespace mol { 00032 00036 class DLLEXPORT_OST_MOL XCSEditor : public EditorBase { 00037 public: 00038 friend class EntityHandle; 00039 00041 XCSEditor(); 00042 00043 ~XCSEditor(); 00044 00045 XCSEditor(const XCSEditor& rhs); 00046 00047 XCSEditor& operator=(const XCSEditor& rhs); 00048 00051 void SetAtomOriginalPos(const AtomHandle& atom, 00052 const geom::Vec3& position); 00053 00057 void SetAtomPos(const AtomHandle& atom, 00058 const geom::Vec3& position); 00059 00064 void ApplyTransform(const geom::Mat4& transform); 00065 00067 00068 void SetTransform(const geom::Mat4& transform); 00069 00071 void UpdateICS(); 00072 protected: 00073 XCSEditor(const EntityHandle& ent, EditMode mode); 00074 00075 void Update(); 00076 }; 00077 00078 }} //ns 00079 00080 #endif
1.5.8