2D Clipping and Viewing Flashcards

1
Q

What is the World Coordinate System?

A

The space in which the application model is defined.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Screen Coordinate System?

A

The space in which the image is displayed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the window?

A

The rectangle of the world we wish to display.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Interface Window?

A

The window everything is displayed in.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the View-port?

A

Where the image is defined to be show, either entire screen or the interface window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Viewing Transformation?

A

Mapping from the world to the view-port.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the steps of a worldview transformation?

A

Choose window in world coordinates > Clip to the size of the window > translate it to the origin > Scale to the view-port size > Translate to the interface window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Panning?

A

Moving the window through the world.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Zooming?

A

Reducing or Increasing the window size.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is aspect ratio?

A

The relation between the width and height of a window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is Clipping?

A

Clipping is the removal of all objects or part of objects in a
modelled scene that are outside the real-world window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Clip Window?

A

The Area to be clipped.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the types of Clipping?

A

Point Clipping, Line Clipping, Area Clipping, Curve Clipping, Text Clipping.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is point clipping?

A

Define 4 lines making a box, if point inside display else don’t.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When is line clip a trivial accept?

A

When the entire line is inside the clip box.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When is line clip a trivial reject?

A

When the entire line is outside the clip box.

17
Q

What are the non-trivial cases for line clipping?

A

One end is inside the clip box while the other end is outside and when both ends are outside the clip box but pass through.

18
Q

What is Brute Force Line Clipping?

A

When you use parametric line equations to look for window intersections. It’s Computationally expensive.

19
Q

What is Cohen-Sutherland Algorithm?

A

A line clipping algorithm that segments the clipping area into nine regions and gives them a 4 bit op-code. line endpoints have corresponding op-codes.

20
Q

How does Cohen-Sutherland Algorithm handle non-trivial cases?

A

Pick endpoint outside. > Pick crossed edge (set op-code bit) > find edge intersection point > replace the outside point with new point > repeat until trivial accept or reject.

21
Q

What lines are a special case for Cohen-Sutherland Algorithm?

A

Vertical lines.

22
Q

What is the Liang-Barsky Algorithm?

A

A line clipping algorithm that uses parametric equations.Algorithm text p. 257.

23
Q

What are all the condition and the parameters for Liang-Barsky?

A
condition up <= q for k = 1,2,3,4
p1 = -dx, q1 = x0 - xwmin
p2 = dx, q2 = xwmax - x0
p3 = -dy, q3 = y0 - ywmin
q4 = dy, p4 = ywmax - y0
if pk != 0, u = qk/pk
24
Q

What is the Sutherland-Hodgman Algorithm?

A

It is a polygon clipping algorithm, go around the polygon and record valid points clip otherwise.