コード例 #1
0
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[Utils.enumToString(NamedEntityKind.MONUMENT)] = EpNerCoreInternalResourceHelper.getBytes("monument.png")
     res[Utils.enumToString(NamedEntityKind.PLANET)] = EpNerCoreInternalResourceHelper.getBytes("planet.png")
     res[Utils.enumToString(NamedEntityKind.LOCATION)] = EpNerCoreInternalResourceHelper.getBytes("location.png")
     res[Utils.enumToString(NamedEntityKind.BUILDING)] = EpNerCoreInternalResourceHelper.getBytes("building.png")
     return res
コード例 #2
0
ファイル: BusinessAnalyzer.py プロジェクト: MihaJjDa/APCLtask
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[MetaBusinessFact.
         IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "businessfact.png")
     res[FundsMeta.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
         "creditcards.png")
     return res
コード例 #3
0
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[MetaBookLink.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
         "booklink.png")
     res[MetaBookLinkRef.
         IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "booklinkref.png")
     res[MetaBookLinkRef.
         IMAGE_ID_INLINE] = EpNerCoreInternalResourceHelper.getBytes(
             "booklinkrefinline.png")
     res[MetaBookLinkRef.
         IMAGE_ID_LAST] = EpNerCoreInternalResourceHelper.getBytes(
             "booklinkreflast.png")
     return res
コード例 #4
0
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[MetaInstrument.
         DOC_IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "decree.png")
     res[MetaInstrumentBlock.
         PART_IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "part.png")
     res[InstrumentParticipantMeta.
         IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "participant.png")
     res[InstrumentArtefactMeta.
         IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
             "artefact.png")
     return res
コード例 #5
0
ファイル: ProcessorService.py プロジェクト: MihaJjDa/APCLtask
 def getImageById(image_id: str) -> 'ImageWrapper':
     """ Получить иконку по идентификатору иконки
     
     Args:
         image_id(str): 
     
     """
     if (image_id is not None):
         wrapres2682 = RefOutArgWrapper(None)
         inoutres2683 = Utils.tryGetValue(ProcessorService.__m_images,
                                          image_id, wrapres2682)
         res = wrapres2682.value
         if (inoutres2683):
             return res
     if (ProcessorService.__m_unknown_image is None):
         ProcessorService.__m_unknown_image = ImageWrapper._new2681(
             "unknown",
             EpNerCoreInternalResourceHelper.getBytes("unknown.png"))
     return ProcessorService.__m_unknown_image
コード例 #6
0
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[Utils.enumToString(
         TransportKind.FLY)] = EpNerCoreInternalResourceHelper.getBytes(
             "fly.png")
     res[Utils.enumToString(
         TransportKind.SHIP)] = EpNerCoreInternalResourceHelper.getBytes(
             "ship.png")
     res[Utils.enumToString(
         TransportKind.SPACE)] = EpNerCoreInternalResourceHelper.getBytes(
             "space.png")
     res[Utils.enumToString(
         TransportKind.TRAIN)] = EpNerCoreInternalResourceHelper.getBytes(
             "train.png")
     res[Utils.enumToString(
         TransportKind.AUTO)] = EpNerCoreInternalResourceHelper.getBytes(
             "auto.png")
     res[MetaTransport.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
         "transport.png")
     return res
コード例 #7
0
 def images(self) -> typing.List[tuple]:
     res = dict()
     res[MetaWeapon.IMAGE_ID] = EpNerCoreInternalResourceHelper.getBytes(
         "weapon.jpg")
     return res