Class WavefrontOBJBaseVisitor<Result>
This class provides an empty implementation of IWavefrontOBJVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Wavefront
Assembly: Wavefront.dll
Syntax
public class WavefrontOBJBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IWavefrontOBJVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitBasis_matrix(WavefrontOBJParser.Basis_matrixContext)
Visit a parse tree produced by basis_matrix().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBasis_matrix(WavefrontOBJParser.Basis_matrixContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Basis_matrixContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBevel(WavefrontOBJParser.BevelContext)
Visit a parse tree produced by bevel().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBevel(WavefrontOBJParser.BevelContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.BevelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCall(WavefrontOBJParser.CallContext)
Visit a parse tree produced by call().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCall(WavefrontOBJParser.CallContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.CallContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitColor_interpolation(WavefrontOBJParser.Color_interpolationContext)
Visit a parse tree produced by color_interpolation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitColor_interpolation(WavefrontOBJParser.Color_interpolationContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Color_interpolationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConnectivity(WavefrontOBJParser.ConnectivityContext)
Visit a parse tree produced by connectivity().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConnectivity(WavefrontOBJParser.ConnectivityContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.ConnectivityContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCsh(WavefrontOBJParser.CshContext)
Visit a parse tree produced by csh().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCsh(WavefrontOBJParser.CshContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.CshContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCurve(WavefrontOBJParser.CurveContext)
Visit a parse tree produced by curve().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCurve(WavefrontOBJParser.CurveContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.CurveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCurve_approximation_technique(WavefrontOBJParser.Curve_approximation_techniqueContext)
Visit a parse tree produced by curve_approximation_technique().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCurve_approximation_technique(WavefrontOBJParser.Curve_approximation_techniqueContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Curve_approximation_techniqueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCurve_surface_type(WavefrontOBJParser.Curve_surface_typeContext)
Visit a parse tree produced by curve_surface_type().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCurve_surface_type(WavefrontOBJParser.Curve_surface_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Curve_surface_typeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCurve2d(WavefrontOBJParser.Curve2dContext)
Visit a parse tree produced by curve2d().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCurve2d(WavefrontOBJParser.Curve2dContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Curve2dContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDecimal(WavefrontOBJParser.DecimalContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDecimal(WavefrontOBJParser.DecimalContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.DecimalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDegree(WavefrontOBJParser.DegreeContext)
Visit a parse tree produced by degree().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDegree(WavefrontOBJParser.DegreeContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.DegreeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDissolve_interpolation(WavefrontOBJParser.Dissolve_interpolationContext)
Visit a parse tree produced by dissolve_interpolation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDissolve_interpolation(WavefrontOBJParser.Dissolve_interpolationContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Dissolve_interpolationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnd(WavefrontOBJParser.EndContext)
Visit a parse tree produced by end().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnd(WavefrontOBJParser.EndContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.EndContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFaces(WavefrontOBJParser.FacesContext)
Visit a parse tree produced by faces().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFaces(WavefrontOBJParser.FacesContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.FacesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFree_form_surface(WavefrontOBJParser.Free_form_surfaceContext)
Visit a parse tree produced by free_form_surface().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFree_form_surface(WavefrontOBJParser.Free_form_surfaceContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Free_form_surfaceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup(WavefrontOBJParser.GroupContext)
Visit a parse tree produced by group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup(WavefrontOBJParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.GroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInner_trimming_loop(WavefrontOBJParser.Inner_trimming_loopContext)
Visit a parse tree produced by inner_trimming_loop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInner_trimming_loop(WavefrontOBJParser.Inner_trimming_loopContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Inner_trimming_loopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLevel_of_detail(WavefrontOBJParser.Level_of_detailContext)
Visit a parse tree produced by level_of_detail().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLevel_of_detail(WavefrontOBJParser.Level_of_detailContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Level_of_detailContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLines(WavefrontOBJParser.LinesContext)
Visit a parse tree produced by lines().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLines(WavefrontOBJParser.LinesContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.LinesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMap_library(WavefrontOBJParser.Map_libraryContext)
Visit a parse tree produced by map_library().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMap_library(WavefrontOBJParser.Map_libraryContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Map_libraryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMaterial_library(WavefrontOBJParser.Material_libraryContext)
Visit a parse tree produced by material_library().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMaterial_library(WavefrontOBJParser.Material_libraryContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Material_libraryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMerging_group(WavefrontOBJParser.Merging_groupContext)
Visit a parse tree produced by merging_group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMerging_group(WavefrontOBJParser.Merging_groupContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Merging_groupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitObject_name(WavefrontOBJParser.Object_nameContext)
Visit a parse tree produced by object_name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitObject_name(WavefrontOBJParser.Object_nameContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Object_nameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOuter_trimming_loop(WavefrontOBJParser.Outer_trimming_loopContext)
Visit a parse tree produced by outer_trimming_loop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOuter_trimming_loop(WavefrontOBJParser.Outer_trimming_loopContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Outer_trimming_loopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParameter(WavefrontOBJParser.ParameterContext)
Visit a parse tree produced by parameter().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParameter(WavefrontOBJParser.ParameterContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.ParameterContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPoints(WavefrontOBJParser.PointsContext)
Visit a parse tree produced by points().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPoints(WavefrontOBJParser.PointsContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.PointsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitShadow_object(WavefrontOBJParser.Shadow_objectContext)
Visit a parse tree produced by shadow_object().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitShadow_object(WavefrontOBJParser.Shadow_objectContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Shadow_objectContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSmoothing_group(WavefrontOBJParser.Smoothing_groupContext)
Visit a parse tree produced by smoothing_group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSmoothing_group(WavefrontOBJParser.Smoothing_groupContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Smoothing_groupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSpecial_curve(WavefrontOBJParser.Special_curveContext)
Visit a parse tree produced by special_curve().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSpecial_curve(WavefrontOBJParser.Special_curveContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Special_curveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSpecial_point(WavefrontOBJParser.Special_pointContext)
Visit a parse tree produced by special_point().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSpecial_point(WavefrontOBJParser.Special_pointContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Special_pointContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStart(WavefrontOBJParser.StartContext)
Visit a parse tree produced by start().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStart(WavefrontOBJParser.StartContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.StartContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(WavefrontOBJParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(WavefrontOBJParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStep(WavefrontOBJParser.StepContext)
Visit a parse tree produced by step().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStep(WavefrontOBJParser.StepContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.StepContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSurface(WavefrontOBJParser.SurfaceContext)
Visit a parse tree produced by surface().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSurface(WavefrontOBJParser.SurfaceContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.SurfaceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSurface_approximation_technique(WavefrontOBJParser.Surface_approximation_techniqueContext)
Visit a parse tree produced by surface_approximation_technique().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSurface_approximation_technique(WavefrontOBJParser.Surface_approximation_techniqueContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Surface_approximation_techniqueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTrace_object(WavefrontOBJParser.Trace_objectContext)
Visit a parse tree produced by trace_object().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTrace_object(WavefrontOBJParser.Trace_objectContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Trace_objectContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUse_map(WavefrontOBJParser.Use_mapContext)
Visit a parse tree produced by use_map().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUse_map(WavefrontOBJParser.Use_mapContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Use_mapContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUse_material(WavefrontOBJParser.Use_materialContext)
Visit a parse tree produced by use_material().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUse_material(WavefrontOBJParser.Use_materialContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Use_materialContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVertex(WavefrontOBJParser.VertexContext)
Visit a parse tree produced by vertex().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVertex(WavefrontOBJParser.VertexContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.VertexContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVertex_normal(WavefrontOBJParser.Vertex_normalContext)
Visit a parse tree produced by vertex_normal().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVertex_normal(WavefrontOBJParser.Vertex_normalContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Vertex_normalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVertex_parameter(WavefrontOBJParser.Vertex_parameterContext)
Visit a parse tree produced by vertex_parameter().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVertex_parameter(WavefrontOBJParser.Vertex_parameterContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Vertex_parameterContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVertex_texture(WavefrontOBJParser.Vertex_textureContext)
Visit a parse tree produced by vertex_texture().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVertex_texture(WavefrontOBJParser.Vertex_textureContext context)
Parameters
Type | Name | Description |
---|---|---|
WavefrontOBJParser.Vertex_textureContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |