X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/blobdiff_plain/c92e802f596346087ee22a76868654f40a199f6e..77794fd69f839fbaefe813ea5ea45601aa056da0:/culooks_cube.cpp diff --git a/culooks_cube.cpp b/culooks_cube.cpp index 2bf8804..890ff16 100644 --- a/culooks_cube.cpp +++ b/culooks_cube.cpp @@ -62,6 +62,7 @@ void culooks::cube::draw() glRotatef(az, 0, 1, 0); glRotatef(alt, 1, 0, 0); glColor4f(wireColor[0], wireColor[1], wireColor[2], wireColor[3]); + glLineWidth(framewidth); glutWireCube(2); glPopMatrix(); @@ -92,6 +93,8 @@ void culooks::cube::drawAll() glTranslatef(2.0*ix/l,2.0*iy/l,2.0*iz/l); glScalef(2.0/l,2.0/l,2.0/l); + glLineWidth(linkwidth); + /* draw links */ if (!hidelinks) { glBegin(GL_LINES); @@ -113,6 +116,8 @@ void culooks::cube::drawAll() glEnd(); } + glLineWidth(1); + /* draw plaquettes */ if (!hideplaquettes) { glBegin(GL_QUADS); @@ -180,3 +185,11 @@ void culooks::cube::setWireColor(const float& r, const float& g, const float& b, wireColor[2] = b; wireColor[3] = a; } + +void culooks::cube::setFrameWidth(float width) { + framewidth = width; +} + +void culooks::cube::setLinkWidth(float width) { + linkwidth = width; +}