Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
7c482f68
Commit
7c482f68
authored
Mar 03, 2008
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Jonas Diemer's patch (3D display: enhanced movings from mouse and tools)
parent
56ef4d3b
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
765 additions
and
711 deletions
+765
-711
3d_canvas.cpp
3d-viewer/3d_canvas.cpp
+19
-8
3d_draw.cpp
3d-viewer/3d_draw.cpp
+740
-703
change_log.txt
change_log.txt
+6
-0
No files found.
3d-viewer/3d_canvas.cpp
View file @
7c482f68
...
@@ -282,6 +282,8 @@ void Pcb3D_GLCanvas::OnMouseEvent( wxMouseEvent& event )
...
@@ -282,6 +282,8 @@ void Pcb3D_GLCanvas::OnMouseEvent( wxMouseEvent& event )
}
}
if
(
event
.
Dragging
()
)
if
(
event
.
Dragging
()
)
{
if
(
event
.
LeftIsDown
()
)
{
{
/* drag in progress, simulate trackball */
/* drag in progress, simulate trackball */
trackball
(
spin_quat
,
trackball
(
spin_quat
,
...
@@ -291,6 +293,15 @@ void Pcb3D_GLCanvas::OnMouseEvent( wxMouseEvent& event )
...
@@ -291,6 +293,15 @@ void Pcb3D_GLCanvas::OnMouseEvent( wxMouseEvent& event )
(
size
.
y
-
2.0
*
event
.
GetY
()
)
/
size
.
y
);
(
size
.
y
-
2.0
*
event
.
GetY
()
)
/
size
.
y
);
add_quats
(
spin_quat
,
g_Parm_3D_Visu
.
m_Quat
,
g_Parm_3D_Visu
.
m_Quat
);
add_quats
(
spin_quat
,
g_Parm_3D_Visu
.
m_Quat
,
g_Parm_3D_Visu
.
m_Quat
);
}
else
if
(
event
.
MiddleIsDown
()
)
{
/* middle button drag -> pan */
/* Current zoom and an additional factor are taken into account for the amount of panning. */
const
float
PAN_FACTOR
=
8.0
*
g_Parm_3D_Visu
.
m_Zoom
;
g_Draw3d_dx
-=
PAN_FACTOR
*
(
g_Parm_3D_Visu
.
m_Beginx
-
event
.
GetX
()
)
/
size
.
x
;
g_Draw3d_dy
-=
PAN_FACTOR
*
(
event
.
GetY
()
-
g_Parm_3D_Visu
.
m_Beginy
)
/
size
.
y
;
}
/* orientation has changed, redraw mesh */
/* orientation has changed, redraw mesh */
DisplayStatus
();
DisplayStatus
();
...
...
3d-viewer/3d_draw.cpp
View file @
7c482f68
This diff is collapsed.
Click to expand it.
change_log.txt
View file @
7c482f68
...
@@ -5,6 +5,12 @@ Started 2007-June-11
...
@@ -5,6 +5,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2008-mars-03 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
3d display:
Added Jonas Diemer's patch (enhanced movings from mouse and tools)
2008-Mar-1 UPDATE Dick Hollenbeck <dick@softplc.com>
2008-Mar-1 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
================================================================================
+pcbnew
+pcbnew
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment