⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 typeomatic.cpp.in

📁 学习 open inventor 的例子
💻 IN
📖 第 1 页 / 共 4 页
字号:
  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ K UNDEFINED K ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # K",  "          USE LabelTransform",  "          AsciiText { string \"K\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ L UNDEFINED L ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # L",  "          USE LabelTransform",  "          AsciiText { string \"L\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ SEMICOLON UNDEFINED SEMICOLON ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # SEMICOLON",  "          USE NumericLabelTransform",  "          AsciiText { string \";\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ APOSTROPHE UNDEFINED APOSTROPHE ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # APOSTROPHE",  "          USE NumericLabelTransform",  "          AsciiText { string \"'\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ BACKSLASH UNDEFINED BACKSLASH ]",  "        behavior [ TOGGLE NONE TOGGLE ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # BACKSLASH",  "          Translation { translation 0.5 0 0 }",  "          USE NumericLabelTransform",  "          Scale { scaleFactor -1 1 1 }",  "          AsciiText { string \"/\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0.5 0 }",  "      Scale { scaleFactor 0.96 1.5 1 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ RETURN UNDEFINED RETURN ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # RETURN",  "          USE LabelTransform",  "          AsciiText { string \"<-\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "    }",  "  }",  "  Translation { translation 0 -2.5 0 }",  "  Separator {",  "    Group {",  "      Translation { translation 1.5 0 0 }",  "      Scale { scaleFactor 2.5 1 1 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ LEFT_SHIFT UNDEFINED LEFT_SHIFT ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Cube {} # LEFT_SHIFT",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Scale { scaleFactor 0.4 1 1 }",  "      Translation { translation 4 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ Z UNDEFINED Z ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # Z",  "          USE LabelTransform",  "          AsciiText { string \"Z\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ X UNDEFINED X ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # X",  "          USE LabelTransform",  "          AsciiText { string \"X\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ C UNDEFINED C ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # C",  "          USE LabelTransform",  "          AsciiText { string \"C\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ V UNDEFINED V ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # V",  "          USE LabelTransform",  "          AsciiText { string \"V\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ B UNDEFINED B ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # B",  "          USE LabelTransform",  "          AsciiText { string \"B\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ N UNDEFINED N ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # N",  "          USE LabelTransform",  "          AsciiText { string \"N\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ M UNDEFINED M ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # M",  "          USE LabelTransform",  "          AsciiText { string \"M\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ COMMA UNDEFINED COMMA ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # COMMA",  "          USE NumericLabelTransform",  "          AsciiText { string \",\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ PERIOD UNDEFINED PERIOD ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # PERIOD",  "          USE NumericLabelTransform",  "          AsciiText { string \".\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 2.5 0 0 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ SLASH UNDEFINED SLASH ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Separator {",  "          Cube {} # SLASH",  "          USE NumericLabelTransform",  "          AsciiText { string \"/\" }",  "        }",  "        Translation { translation 0 0 0.5 }",  "      }",  "      Translation { translation 4.5 0 0 }",  "      Scale { scaleFactor 3 1 1 }",  "      SwitchboardOperator {",  "        enable [ FALSE TRUE FALSE ]",  "        key [ LEFT_SHIFT UNDEFINED LEFT_SHIFT ]",  "        behavior [ HOLD NONE HOLD ]",  "        Translation { translation 0 0 -0.5 }",  "        Cube {} # RIGHT_SHIFT",  "        Translation { translation 0 0 0.5 }",  "      }",  "    }",  "  }",  "  Translation { translation 0 -2.5 0 }",  "  Separator {",  "    Group {",  "      Separator {",  "        Translation { translation 1 0 0 }",  "        Scale { scaleFactor 2 1 1 }",  "        SwitchboardOperator {",  "          enable [ FALSE ]",  "          key [ LEFT_CONTROL ]",  "          behavior [ HOLD ]",  "          Translation { translation 0 0 -0.5 }",  "        }",  "        Cube {} # CONTROL",  "      }",  "      Separator {",  "        Translation { translation 6.75 0 0 }",  "        Scale { scaleFactor 2 1 1 }",  "        SwitchboardOperator {",  "          enable [ FALSE ]",  "          key [ LEFT_ALT ]",  "          behavior [ HOLD ]",  "          Translation { translation 0 0 -0.5 }",  "        }",  "        Cube {} # ALT",  "      }",  "      Separator {",  "        Translation { translation 17.25 0 0 }",  "        Scale { scaleFactor 8 1 1 }",  "        SwitchboardOperator {",  "          enable [ FALSE ]",  "          key [ SPACE ]",  "          behavior [ HOLD ]",  "          Translation { translation 0 0 -0.5 }",  "        }",  "        Cube {} # SPACE",  "      }",  "      Separator {",  "        Translation { translation 27.75 0 0 }",  "        Scale { scaleFactor 2 1 1 }",  "        SwitchboardOperator {",  "          enable [ FALSE ]",  "          key [ LEFT_ALT ]",  "          behavior [ HOLD ]",  "          Translation { translation 0 0 -0.5 }",  "        }",  "        Cube {} # alt",  "      }",  "      Separator {",  "        Translation { translation 33.5 0 0 }",  "        Scale { scaleFactor 2 1 1 }",  "        SwitchboardOperator {",  "          enable [ FALSE ]",  "          key [ LEFT_CONTROL ]",  "          behavior [ HOLD ]",  "          Translation { translation 0 0 -0.5 }",  "        }",  "        Cube {} # ctrl",  "      }",  "    }",  "  }",  " }",  " Separator {",  "  DirectionalLight { direction 0.5 0.5 1 }",  "  OrthographicCamera {}",  "  Separator {",  "    BaseColor { rgb 1 1 0 }",  "    Translation { translation -1.2 -0.5 0 }",  "    Scale { scaleFactor 0.006 0.006 0.006 }",  "    AsciiText {",  "      string [",  "        \"granted, it is wobbly\"",  "        \"the keys are worn and sticky\"",  "        \"but for a mere bubbly\"",  "        \"you really can't be picky\"",  "        \"\"",  "        \"[ESC, then 'Q' to quit]\"",  "      ]",  "    }",  "  }",  "  DEF message Switch {",  "    whichChild -1",  "    Separator {",  "      BaseColor { rgb 0.6 0 0 }",  "      Translation { translation -0.3 -0.7 0 }",  "      Scale { scaleFactor 0.005 0.005 0.005 }",  "      AsciiText {",  "        string [",  "          \"[it's a KEY board]\"",  "        ]",  "      }",  "    }",  "  }",  " }",  "}",  NULL};// *************************************************************************#include <Inventor/nodes/SoSubNode.h>#include <Inventor/misc/SoChildList.h>#include <Inventor/actions/SoGetBoundingBoxAction.h>#include <Inventor/actions/SoSearchAction.h>#include <Inventor/actions/SoGetMatrixAction.h>#include <Inventor/actions/SoGLRenderAction.h>#include <Inventor/actions/SoPickAction.h>#include <Inventor/actions/SoHandleEventAction.h>#include <Inventor/actions/SoCallbackAction.h>#include <Inventor/actions/SoGetPrimitiveCountAction.h>#include <Inventor/actions/SoWriteAction.h>#include <Inventor/SoOutput.h>#include <Inventor/errors/SoDebugError.h>voidSwitchboard::initClass(void)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -