Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
d9d605b9
Commit
d9d605b9
authored
Oct 02, 2001
by
Ken Martin
Browse files
now looks at identiy flag
parent
104130aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkOpenGLActor.cxx
View file @
d9d605b9
...
...
@@ -97,37 +97,43 @@ void vtkOpenGLActor::Render(vtkRenderer *ren, vtkMapper *mapper)
}
// build transformation
double
*
mat
=
this
->
GetMatrix
()
->
Element
[
0
];
double
mat2
[
16
];
mat2
[
0
]
=
mat
[
0
];
mat2
[
1
]
=
mat
[
4
];
mat2
[
2
]
=
mat
[
8
];
mat2
[
3
]
=
mat
[
12
];
mat2
[
4
]
=
mat
[
1
];
mat2
[
5
]
=
mat
[
5
];
mat2
[
6
]
=
mat
[
9
];
mat2
[
7
]
=
mat
[
13
];
mat2
[
8
]
=
mat
[
2
];
mat2
[
9
]
=
mat
[
6
];
mat2
[
10
]
=
mat
[
10
];
mat2
[
11
]
=
mat
[
14
];
mat2
[
12
]
=
mat
[
3
];
mat2
[
13
]
=
mat
[
7
];
mat2
[
14
]
=
mat
[
11
];
mat2
[
15
]
=
mat
[
15
];
if
(
!
this
->
IsIdentity
)
{
double
*
mat
=
this
->
GetMatrix
()
->
Element
[
0
];
double
mat2
[
16
];
mat2
[
0
]
=
mat
[
0
];
mat2
[
1
]
=
mat
[
4
];
mat2
[
2
]
=
mat
[
8
];
mat2
[
3
]
=
mat
[
12
];
mat2
[
4
]
=
mat
[
1
];
mat2
[
5
]
=
mat
[
5
];
mat2
[
6
]
=
mat
[
9
];
mat2
[
7
]
=
mat
[
13
];
mat2
[
8
]
=
mat
[
2
];
mat2
[
9
]
=
mat
[
6
];
mat2
[
10
]
=
mat
[
10
];
mat2
[
11
]
=
mat
[
14
];
mat2
[
12
]
=
mat
[
3
];
mat2
[
13
]
=
mat
[
7
];
mat2
[
14
]
=
mat
[
11
];
mat2
[
15
]
=
mat
[
15
];
// insert model transformation
glMatrixMode
(
GL_MODELVIEW
);
glPushMatrix
();
glMultMatrixd
(
mat2
);
}
// insert model transformation
glMatrixMode
(
GL_MODELVIEW
);
glPushMatrix
();
glMultMatrixd
(
mat2
);
// send a render to the mapper; update pipeline
mapper
->
Render
(
ren
,
this
);
// pop transformation matrix
glMatrixMode
(
GL_MODELVIEW
);
glPopMatrix
();
if
(
!
this
->
IsIdentity
)
{
glMatrixMode
(
GL_MODELVIEW
);
glPopMatrix
();
}
if
(
opacity
!=
1.0
)
{
glDepthMask
(
GL_TRUE
);
...
...
Write
Preview
Supports
Markdown
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