Skip to content

Commit

Permalink
Update readme and som default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
qhou-scu committed Oct 15, 2020
1 parent 66ffa97 commit bfebd97
Show file tree
Hide file tree
Showing 7 changed files with 5,123 additions and 19 deletions.
8 changes: 4 additions & 4 deletions GLLIBSRC/Sphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
int Sphere::fai=0;
int Sphere::theta=0;

#define c_MXNFAI 64
#define c_MXNTHETA 64
#define DEFAUT_NUMFAI 12
#define DEFAUT_NUMTHETA 12
#define c_MXNFAI 128
#define c_MXNTHETA 128
#define DEFAUT_NUMFAI 32
#define DEFAUT_NUMTHETA 32

static float cosfai[c_MXNFAI], sinfai[c_MXNFAI];
static float costheta[c_MXNTHETA],sintheta[c_MXNTHETA];
Expand Down
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# VisAtom
A tool for visualizing MD data coded in C++/QT/OpenGL, in the Microsoft Visual Studio 2017.
A tool for visualizing MD data coded in C++/QT/OpenGL and the Microsoft Visual Studio 2017.

Requirements:
Build requirements:
Microsoft Visual Studio 2017
QT5.0


Build:
open the solution VisAtom2017/VisAtom2017.sln in VS
run build
the excutable, VisAtom2017.exe, will be generated in VisAtom2020\VisAtom2017\x64\Release
open the solution VisAtom2017/VisAtom2017.sln in VS and run build. The excutable, VisAtom2017.exe, will be generated in VisAtom2017\x64\Release

Run:
To run outof VS envirenment, a few QT dynamic libraries (see in Dependence directory) are needed. Copy the excutable and the dependence DLLs to the working directory.


Format of the configurations:
The atomic configurations are stored in multiple columes, or generated by mdpscu package (see qhou-scu/msmpscu).
Examples of configuration files can be found in example-data.



To run outof VS envirenment:
A few QT dynamic libraries are needed. Copy the excutable and the dependence DLL to the same working directory.
2 changes: 1 addition & 1 deletion VISATOMSRC/VisAtomVisualizingPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ VisAtomVisualizingPolicy::VisAtomVisualizingPolicy()

m_geomStyle = GEOM_STYLE_ATOM | GEOM_STYLE_3D; //|GEOM_STYLE_PROJECT;
//display property of atoms in the subsample
m_shapeStyle= SHAPE_STYLE_DOT;
m_shapeStyle= SHAPE_STYLE_SOLID;
m_radius = 0.5f;
m_unifyradiu = 1;

Expand Down
17 changes: 10 additions & 7 deletions VisAtom2017/VisAtom2017.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>1227</width>
<height>762</height>
<height>832</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -110,7 +110,7 @@
<x>0</x>
<y>0</y>
<width>1227</width>
<height>23</height>
<height>26</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
Expand Down Expand Up @@ -234,8 +234,8 @@
</property>
<property name="minimumSize">
<size>
<width>314</width>
<height>667</height>
<width>362</width>
<height>701</height>
</size>
</property>
<property name="maximumSize">
Expand Down Expand Up @@ -2507,8 +2507,8 @@
</property>
<property name="minimumSize">
<size>
<width>282</width>
<height>559</height>
<width>343</width>
<height>635</height>
</size>
</property>
<property name="maximumSize">
Expand Down Expand Up @@ -2583,7 +2583,7 @@
<string>Dot</string>
</property>
<property name="checked">
<bool>true</bool>
<bool>false</bool>
</property>
</widget>
</item>
Expand All @@ -2592,6 +2592,9 @@
<property name="text">
<string>Solid sphere</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0">
Expand Down
Loading

0 comments on commit bfebd97

Please sign in to comment.