forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OGSMOD-1904] Integrate multiline multi-style multi-column text into …
…USD (PixarAnimationStudios#119) Description of Change(s) Integrate multiline multi-style multi-column text into USD (cherry picked from commit 9dd03cd0893862be6767115efe6cef785277d6d1)
- Loading branch information
1 parent
3da9255
commit 57ebf7f
Showing
40 changed files
with
3,166 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
#usda 1.0 | ||
|
||
( | ||
upAxis = "Y" | ||
doc = """This layer represents the various geometric forms that curves | ||
may be used to represent.""" | ||
) | ||
|
||
|
||
def Xform "Linear" { | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (0, 9, 0) | ||
def Scope "Tubes"{ | ||
def BasisCurves "ConstantWidth1" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(0, 0, 0), (0, -170, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth2" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(0, -170, 0), (150, -170, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth3" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(150, -170, 0), (150, 0, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth4" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(150, 0, 0), (0, 0, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
|
||
def BasisCurves "ConstantWidth5" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(160, 0, 0), (160, -170, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth6" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(160, -170, 0), (360, -170, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth7" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(360, -170, 0), (360, 0, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
def BasisCurves "ConstantWidth8" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
uniform token type = "linear" | ||
int[] curveVertexCounts = [2] | ||
point3f[] points = [(360, 0, 0), (160, 0, 0)] | ||
float[] widths = [.5] (interpolation = "constant") | ||
color3f[] primvars:displayColor = [(1, 0, 0)] | ||
} | ||
} | ||
} | ||
|
||
def Xform "Text1" { | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (0, 9, 0) | ||
def Scope "Text11"{ | ||
def GenericText "TextA" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
string markupString = "\\fArial|b0|i1|p34|c0;\\H30;\\c65300;The quick bro\\H20;\\c0;wn fox jumps over \\H30;\\c42137;the lazy dog. \\c12255232;The quick brown fox \\fConsolas|b1|i0|p34|c0;\\c100;jumps over the lazy dog." | ||
uniform token markupLanguage = "mtext" | ||
color3f[] primvars:displayColor = [(0, 1, 1)] | ||
rel textStyle:binding = </StyleA> | ||
rel columnStyle:binding = [ | ||
</columnA>, | ||
</columnB>, | ||
] | ||
} | ||
} | ||
} | ||
|
||
def TextStyle "StyleA" { | ||
string typeface = "Times New Roman" | ||
int textHeight = 20 | ||
} | ||
|
||
def ColumnStyle "columnA" { | ||
float columnWidth = 150 | ||
float columnHeight = 170 | ||
float2 offset = (0.0, 0.0) | ||
} | ||
|
||
def ColumnStyle "columnB" { | ||
float columnWidth = 200 | ||
float columnHeight = 170 | ||
float2 offset = (160.0, 0.0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.